Index: LayoutTests/http/tests/security/xssAuditor/resources/utilities.js |
diff --git a/LayoutTests/http/tests/security/xssAuditor/resources/utilities.js b/LayoutTests/http/tests/security/xssAuditor/resources/utilities.js |
index 6075a08f4da326fb9f716fbbcee6b349b62d425c..34ec6b8f97b033b977c8768bcddadf06b20a1c39 100644 |
--- a/LayoutTests/http/tests/security/xssAuditor/resources/utilities.js |
+++ b/LayoutTests/http/tests/security/xssAuditor/resources/utilities.js |
@@ -48,16 +48,10 @@ function sendRequestFromIFrame(url, params, HTTPMethod, callbackWhenDone) |
} |
-function notifyDoneAfterReceivingBeforeloadFromIds(ids) |
+function notifyDoneAfterReceivingLoaded() |
{ |
- var loadAttempted = 0; |
window.addEventListener("message", function(event) { |
- var index = ids.indexOf(event.data); |
- if (index == -1) |
- return; |
- |
- loadAttempted = loadAttempted | (1 << index); |
- if (loadAttempted == (1 << ids.length) - 1) |
+ if (event.data == "loaded") |
testRunner.notifyDone(); |
}, false); |
} |