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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html

Issue 2090343003: Fix site-per-process layout tests timeouts due to document.write(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html
index 009a1295e0e9c71f8df9b4207aaaec4e79e1e5d4..4a717c4e1f57c3101c45cd8f193d7e941890d7a1 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-shared-worker.html
@@ -5,6 +5,7 @@ try {
var worker = new SharedWorker('shared-worker.js', 'SharedWorker');
worker.port.onmessage = function(event) {
document.write(event.data);
+ document.close();
window.parent.postMessage(event.data, '*');
}
worker.port.start();
@@ -12,6 +13,7 @@ try {
} catch (exception) {
window.parent.postMessage(exception.name, '*');
document.write(exception.name);
+ document.close();
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698