Index: LayoutTests/http/tests/security/suborigins/resources/childsuborigin.php |
diff --git a/LayoutTests/http/tests/security/suborigins/resources/childsuborigin.php b/LayoutTests/http/tests/security/suborigins/resources/childsuborigin.php |
index 48fa800632a06cc6d7b0472abd21f3b27f781cdf..7aeb97869d9c19741d4615cd938254ac90ba31cf 100644 |
--- a/LayoutTests/http/tests/security/suborigins/resources/childsuborigin.php |
+++ b/LayoutTests/http/tests/security/suborigins/resources/childsuborigin.php |
@@ -8,5 +8,7 @@ if ($_GET["report-only"]) { |
<!DOCTYPE html> |
<script> |
window.parent.secret = 'I am a secret'; |
-parent.postMessage('Done', '*'); |
+window.onload = function() { |
+ parent.postMessage('Done', '*'); |
+} |
</script> |