Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-document-to-parent.php

Issue 2370843003: Suborigin LayoutTest formatting and refactoring (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698