Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html |
index cd05f224601e8781691b1de7b1a0b14615372949..5e015ce98d2e56912d47d2b208bc4d6bf98e8270 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html |
@@ -7,10 +7,9 @@ |
<script src="/resources/testharness.js"></script> |
<script src="/resources/testharnessreport.js"></script> |
+<iframe id="testIframe" src="support/sandbox_allow_script.html" sandbox="allow-same-origin" style="display:none"></iframe> |
<div id="log"></div> |
<script> |
- // Set up all our script stuff before the iframe starts loading, so we don't |
- // miss any messages from it. |
var step1 = false; |
var t = async_test("iframe_sandbox_allow_scripts"); |
@@ -36,11 +35,5 @@ |
t.done(); |
} |
- // Make sure the iframe loads before we mess with it. |
- window.addEventListener("load", function() { |
- // The load event might fire before a message from the child comes in... |
- // Wait a bit to see if that message does come in. |
- setTimeout(run, 500); |
- }); |
+ setTimeout(run, 500); |
</script> |
-<iframe id="testIframe" src="support/sandbox_allow_script.html" sandbox="allow-same-origin" style="display:none"></iframe> |