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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-plugin.html

Issue 2468953002: Make mixedContent/insecure-plugin-in-iframe.html test OOPIF-compatible. (Closed)
Patch Set: No line numbers (by delaying mixed content message via setTimeout). Created 4 years, 1 month 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/mixedContent/resources/frame-with-insecure-plugin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-plugin.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-plugin.html
index 8b65f62a9563906130566cb9be88cd1feb47616b..ef4d4270f3ca2918010900026ce6df3f2df9190e 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-plugin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-plugin.html
@@ -1,7 +1,11 @@
<script>
window.onload = function() {
- if (window.opener)
- window.opener.postMessage('done', '*');
+ setTimeout(function() {
+ if (window.internals)
+ internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(document);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
}
</script>
<object name='plugin' type='application/x-blink-test-plugin'>

Powered by Google App Engine
This is Rietveld 408576698