Index: LayoutTests/http/tests/security/frameNavigation/resources/frame-with-plugin-to-navigate.html |
diff --git a/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-plugin-to-navigate.html b/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-plugin-to-navigate.html |
index bf5d0362abc4f655ed1320c5e2ecb38e19a30775..16120a6d3001e805fa3b8604ca8ac584c7aa9799 100644 |
--- a/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-plugin-to-navigate.html |
+++ b/LayoutTests/http/tests/security/frameNavigation/resources/frame-with-plugin-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() |