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

Side by Side Diff: LayoutTests/http/tests/security/suborigins/resources/iframe-reaches-into-parent.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
(Empty)
1 <?php
2 if ($_GET["suborigin"]) {
3 header("Content-Security-Policy: suborigin " . $_GET["suborigin"]);
4 }
5 ?>
6 <!DOCTYPE html>
7 <html>
8 <script>
9 window.secret = '';
10 window.onmessage = function() {
11 window.parent.postMessage(secret, '*');
12 };
13 </script>
14 <?php
15 if ($_GET["childsuborigin"]) {
16 echo "<iframe id=\"iframe\" src=\"post-to-parent.php?suborigin=" . $_GET["ch ildsuborigin"] . "\"></iframe>";
17 } else {
18 echo "<iframe id=\"iframe\" src=\"post-to-parent.php\"></iframe>";
19 }
20 ?>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698