Index: LayoutTests/http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-window-open.html |
diff --git a/LayoutTests/http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-window-open.html b/LayoutTests/http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-window-open.html |
index 8d37b40c51a20d9a5efe994a8388659492cf2122..ea34075eaa5c0420f3e29c85aa76ca7a42e8a345 100644 |
--- a/LayoutTests/http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-window-open.html |
+++ b/LayoutTests/http/tests/security/javascriptURL/xss-DENIED-from-javascript-url-in-foreign-domain-window-open.html |
@@ -14,18 +14,10 @@ |
openedWindow = window.open("http://localhost:8000/security/javascriptURL/resources/foreign-domain-javascript-url-accessor-opened-frame.html"); |
- if (window.testRunner) { |
- setTimeout(pollUntilDone, 1); |
- } |
- } |
- |
- pollUntilDone = function() |
- { |
- if (!testRunner.globalFlag) { |
- setTimeout(pollUntilDone, 1); |
- return; |
- } |
- closeWindowAndNotifyDone(openedWindow); |
+ window.addEventListener('message', function () |
+ { |
+ closeWindowAndNotifyDone(openedWindow); |
+ }); |
} |
</script> |
</head> |