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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/reach-into-iframe.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/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>";
}

Powered by Google App Engine
This is Rietveld 408576698