Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / window-open-insert-list-crash.html
index c51bb88..10c7116 100644 (file)
@@ -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();
 }