Index: LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open.html |
diff --git a/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open.html b/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open.html |
index 6c9e975aebe3c7053bb17a4191c40c1136a68f9c..ded14067c2ef1acaf2650c9598fc11dd63822422 100644 |
--- a/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open.html |
+++ b/LayoutTests/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open.html |
@@ -15,8 +15,7 @@ |
+ "<head>" |
+ "<scr" + "ipt>" |
+ "function fireSentinel() {" |
- + "if (window.testRunner)" |
- + "testRunner.globalFlag = true;" |
+ + "window.opener.postMessage('done', '*');" |
+ "}" |
+ "</scr" + "ipt>" |
+ "</head>" |
@@ -26,20 +25,8 @@ |
+ "</body>" |
+ "</html>"; |
+ window.addEventListener('message', performTest); |
openedWindow = window.open(url); |
- |
- if (window.testRunner) { |
- setTimeout(waitForFlag, 1); |
- function waitForFlag() { |
- if (!testRunner.globalFlag) { |
- setTimeout(waitForFlag, 1); |
- return; |
- } |
- performTest(); |
- } |
- } else { |
- log("Click the button when all the subframes have finished loading."); |
- } |
} |
function performTest() { |
@@ -55,7 +42,6 @@ |
</head> |
<body onload="loaded();"> |
<p>Opener Frame</p> |
- <button onclick="performTest()">Test</button> |
<pre id="console"></pre> |
</body> |
</html> |