summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html')
-rw-r--r--third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html b/third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html
index c51bb88..10c7116 100644
--- a/third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html
@@ -18,8 +18,11 @@ document.body.appendChild(iframe);
function didReceiveMessage(event)
{
+ if (iframe === null)
+ return;
shouldBeEqualToString('event.data', 'FINISH');
document.body.removeChild(iframe);
+ iframe = null;
testPassed('Did not crash.');
window.finishJSTest();
}