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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-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-to-parent.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php
index d5bfc02ed0c9ec0a43bd0bed9f300fb2056c3fd7..5663b83087b657844ca85d1b6268ef9ce982e267 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/resources/post-to-parent.php
@@ -5,13 +5,16 @@ if ($_GET["suborigin"]) {
?>
<!DOCTYPE html>
<html>
+<head>
+<meta charset="utf-8">
+</head>
<script>
window.secret = 'I am a secret';
try {
- window.parent.secret = 'I am a secret';
+ window.parent.secret = 'I am a secret';
} catch(e) {
- // Ignore. The fact that secret hasn't changed in the parent will be
- // recognized in the parent.
+ // Ignore. The fact that secret hasn't changed in the parent will be
+ // recognized in the parent.
}
window.parent.postMessage('Done', '*');
</script>

Powered by Google App Engine
This is Rietveld 408576698