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

Side by Side Diff: LayoutTests/http/tests/security/suborigins/resources/child-changes-document-domain.php

Issue 1180923003: Add window access checks for Suborigins (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests on Windows Created 5 years, 6 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["report-only"]) { 2 if ($_GET["suborigin"]) {
3 header("Content-Security-Policy-Report-Only: suborigin " . $_GET["suborigin" ]);
4 } else {
5 header("Content-Security-Policy: suborigin " . $_GET["suborigin"]); 3 header("Content-Security-Policy: suborigin " . $_GET["suborigin"]);
6 } 4 }
7 ?> 5 ?>
8 <!DOCTYPE html> 6 <!DOCTYPE html>
9 <script> 7 <script>
10 document.domain = '127.0.0.1'; 8 try {
11 window.parent.secret = 'I am a secret'; 9 document.domain = '127.0.0.1';
10 window.parent.secret = 'I am a secret';
11 } catch (e) {
12 parent.postMessage('' + e, '*');
13 }
14
12 parent.postMessage('Done', '*'); 15 parent.postMessage('Done', '*');
13 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698