Index: LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html |
diff --git a/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html b/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html |
index daf89a5a8afba5a5653b2ff6d0d58402188b46e4..84259d029f661976a62cc491fb772683f79319f7 100644 |
--- a/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html |
+++ b/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-link-to-navigate.html |
@@ -5,20 +5,7 @@ |
window.onload = function() |
{ |
document.getElementsByTagName('h4')[0].innerHTML = document.domain; |
- if (window.testRunner) { |
- setTimeout(pollForTest, 1); |
- } else { |
- log("Click the link to run the test."); |
- } |
- } |
- |
- pollForTest = function() |
- { |
- if (!testRunner.globalFlag) { |
- setTimeout(pollForTest, 1); |
- return; |
- } |
- runTest(); |
+ window.addEventListener('message', runTest); |
} |
runTest = function() |