Index: LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
diff --git a/LayoutTests/editing/execCommand/window-open-insert-list-crash.html b/LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
index c51bb88469d20a6fcae79475adbceef35f262dc2..10c71161984b96fae74dcbb987b815ab9776c26e 100644 |
--- a/LayoutTests/editing/execCommand/window-open-insert-list-crash.html |
+++ b/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(); |
} |