Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/reach-into-iframe.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/reach-into-iframe.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/reach-into-iframe.php |
index 64ddee0e0690b476f887d0bc89ba6f35ffe079d0..f6bbaa858b11806d8076b89406346d14f4fbc9e5 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/reach-into-iframe.php |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/reach-into-iframe.php |
@@ -5,22 +5,26 @@ if ($_GET["suborigin"]) { |
?> |
<!DOCTYPE html> |
<html> |
+<head> |
+<meta charset="utf-8"> |
+</head> |
<script> |
window.secret = ''; |
window.onmessage = function() { |
- var iframe = document.getElementById('iframe'); |
- var secret; |
- try { |
- secret = iframe.contentWindow.secret; |
- } catch (e) { |
- secret = e.toString(); |
- } |
- parent.postMessage(secret, '*'); |
+ var iframe = document.getElementById('iframe'); |
+ var secret; |
+ try { |
+ secret = iframe.contentWindow.secret; |
+ } catch (e) { |
+ secret = e.toString(); |
+ } |
+ parent.postMessage(secret, '*'); |
}; |
</script> |
<?php |
if ($_GET["childsuborigin"]) { |
- echo "<iframe id=\"iframe\" src=\"post-to-parent.php?suborigin=" . $_GET["childsuborigin"] . "\"></iframe>"; |
+ echo "<iframe id=\"iframe\" src=\"post-to-parent.php?suborigin=" . |
+ $_GET["childsuborigin"] . "\"></iframe>"; |
} else { |
echo "<iframe id=\"iframe\" src=\"post-to-parent.php\"></iframe>"; |
} |