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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/child-changes-document-domain.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/child-changes-document-domain.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/child-changes-document-domain.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/child-changes-document-domain.php
index a5b4b1dbed7702788f0b09c1f141c7a1a85a12f4..ee0ca7f2868709fad4857ba419819e5c189db79d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/child-changes-document-domain.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/child-changes-document-domain.php
@@ -4,12 +4,15 @@ if ($_GET["suborigin"]) {
}
?>
<!DOCTYPE html>
+<head>
+<meta charset="utf-8">
+</head>
<script>
try {
- document.domain = '127.0.0.1';
- window.parent.secret = 'I am a secret';
+ document.domain = '127.0.0.1';
+ window.parent.secret = 'I am a secret';
} catch (e) {
- parent.postMessage('' + e, '*');
+ parent.postMessage('' + e, '*');
}
parent.postMessage('Done', '*');

Powered by Google App Engine
This is Rietveld 408576698