summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/editing')
-rw-r--r--third_party/WebKit/LayoutTests/editing/execCommand/window-open-insert-list-crash.html3
-rw-r--r--third_party/WebKit/LayoutTests/editing/undo/crash-redo-with-iframes.html1
2 files changed, 4 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();
}
diff --git a/third_party/WebKit/LayoutTests/editing/undo/crash-redo-with-iframes.html b/third_party/WebKit/LayoutTests/editing/undo/crash-redo-with-iframes.html
index ab6f7fd..52478ff 100644
--- a/third_party/WebKit/LayoutTests/editing/undo/crash-redo-with-iframes.html
+++ b/third_party/WebKit/LayoutTests/editing/undo/crash-redo-with-iframes.html
@@ -27,6 +27,7 @@ sample.appendChild(iframe3);
document.execCommand('SelectAll');
document.execCommand('CreateLink', false, 'foobar');
iframe1.contentWindow.document.write('0123456789');
+iframe1.contentWindow.document.close();
document.execCommand('Undo');
var iframe4 = document.createElement('iframe');