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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 if ($_GET["suborigin"]) { 2 if ($_GET["suborigin"]) {
3 header("Suborigin: " . $_GET["suborigin"]); 3 header("Suborigin: " . $_GET["suborigin"]);
4 } 4 }
5 ?> 5 ?>
6 <!DOCTYPE html> 6 <!DOCTYPE html>
7 <head>
8 <meta charset="utf-8">
9 </head>
7 <script> 10 <script>
8 try { 11 try {
9 document.domain = '127.0.0.1'; 12 document.domain = '127.0.0.1';
10 window.parent.secret = 'I am a secret'; 13 window.parent.secret = 'I am a secret';
11 } catch (e) { 14 } catch (e) {
12 parent.postMessage('' + e, '*'); 15 parent.postMessage('' + e, '*');
13 } 16 }
14 17
15 parent.postMessage('Done', '*'); 18 parent.postMessage('Done', '*');
16 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698