Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-document-to-parent.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-document-to-parent.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-document-to-parent.php |
index 165440e4ff7e83940761c7763c9c4e4970dec2f6..7fdc75f430572c49ddbc0addc39c87fb93f0d45f 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-document-to-parent.php |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-document-to-parent.php |
@@ -8,17 +8,20 @@ if ($_GET["suborigin"]) { |
?> |
<!DOCTYPE html> |
<html> |
+<head> |
+<meta charset="utf-8"> |
+</head> |
<script> |
var type = '<?php echo $_GET["type"]; ?>'; |
var is_iframe = (type === 'iframe'); |
var p = window.opener; |
if (is_iframe) |
- p = window.parent; |
+ p = window.parent; |
-var target = "<?php if ($_GET["target"]) echo $_GET["target"]; else echo "*"; ?>"; |
+var target = '<?php if ($_GET["target"]) echo $_GET["target"]; else echo "*"; ?>'; |
p.postMessage({ |
- 'suborigin': document.suborigin, |
- 'type': type |
-}, target); |
+ 'suborigin': document.suborigin, |
+ 'type': type |
+ }, target); |
</script> |
</html> |