Index: LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html |
diff --git a/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html b/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html |
index 63a2530815737b546b16b121a668486088d9aec1..f86f980259f94ffa6b0e47190f45a37463e63823 100644 |
--- a/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html |
+++ b/LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html |
@@ -13,17 +13,10 @@ |
openedWindow = window.open("http://localhost:8000/security/dataURL/resources/foreign-domain-data-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> |