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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/iframe-reaches-into-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/iframe-reaches-into-parent.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/iframe-reaches-into-parent.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/iframe-reaches-into-parent.php
index 58be8a684d630f731a75c6343f142ae856c4e609..1dd583e921bc8ac2f908b19be103feacaf29aff4 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/iframe-reaches-into-parent.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/iframe-reaches-into-parent.php
@@ -5,15 +5,19 @@ if ($_GET["suborigin"]) {
?>
<!DOCTYPE html>
<html>
+<head>
+<meta charset="utf-8">
+</head>
<script>
window.secret = '';
window.onmessage = function() {
- window.parent.postMessage(secret, '*');
+ window.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>";
}

Powered by Google App Engine
This is Rietveld 408576698