Index: LayoutTests/http/tests/security/resources/localhost-accesssor.html |
diff --git a/LayoutTests/http/tests/security/resources/localhost-accesssor.html b/LayoutTests/http/tests/security/resources/localhost-accesssor.html |
index 9f49c372c6a76d7805b9685be17d2f3fb233b418..144f8208f0b5baefe2aab54039379dd3891da12b 100644 |
--- a/LayoutTests/http/tests/security/resources/localhost-accesssor.html |
+++ b/LayoutTests/http/tests/security/resources/localhost-accesssor.html |
@@ -4,18 +4,7 @@ |
<script> |
function loaded() |
{ |
- if (window.testRunner) { |
- function waitForFlag() { |
- if (!testRunner.globalFlag) { |
- setTimeout(waitForFlag, 1); |
- return; |
- } |
- performTest(); |
- } |
- setTimeout(waitForFlag, 1); |
- } else { |
- log("Click the button when all the subframes have finished loading."); |
- } |
+ window.addEventListener('message', performTest); |
} |
function performTest() |
@@ -33,7 +22,6 @@ |
</head> |
<body onload="loaded();"> |
<p>Other inner iframe.</p> |
- <button onclick="performTest();">Test</button> |
<pre id='console'></pre> |
</body> |
</html> |