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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php

Issue 1126253007: Block modal dialogs inside sandboxes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebSandboxFlags. Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <?php 1 <?php
2 if ($_GET["report-only"]) { 2 if ($_GET["report-only"]) {
3 header("Content-Security-Policy-Report-Only: sandbox " . $_GET["sandbox"]); 3 header("Content-Security-Policy-Report-Only: sandbox " . $_GET["sandbox"]);
4 } else { 4 } else {
5 header("Content-Security-Policy: sandbox " . $_GET["sandbox"]); 5 header("Content-Security-Policy: sandbox " . $_GET["sandbox"]);
6 } 6 }
7 ?> 7 ?>
8 <!DOCTYPE html> 8 <!DOCTYPE html>
9 <p>Ready</p> 9 <p>Ready</p>
10 <script> 10 <script>
11 alert("Script executed in iframe."); 11 console.log("Script executed in iframe.");
12 window.secret = "I am a secret"; 12 window.secret = "I am a secret";
13 </script> 13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698