Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html
diff --git a/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html b/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html
index 065101ec57d556e98ae46b9a5872ac738fccffe6..fda724d85cfba69a121c4bea44d389102395a12d 100644
--- a/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html
+++ b/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html
@@ -7,11 +7,15 @@ if (window.testRunner) {
}
function runTest() {
root = document.getElementById('root').contentDocument;
- root.addEventListener('load', function() { document.open(); document.write("PASS"); document.close(); }, 1);
+ root.addEventListener('load', function() {
+ document.open();
+ document.write("PASS");
+ document.close();
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }}, 1);
setTimeout(function() {
root.getElementById('test').appendChild(document.createElement('iframe'));
- if (window.testRunner)
- testRunner.notifyDone();
}, 0);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698