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

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.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 header("Content-Security-Policy: sandbox allow-scripts"); 2 header("Content-Security-Policy: sandbox allow-scripts");
3 ?> 3 ?>
4 <script> 4 <script>
5 alert('PASS (1/2): Script can execute'); 5 console.log('PASS (1/2): Script can execute');
6 </script> 6 </script>
7 <script> 7 <script>
8 eval("alert('PASS (2/2): Eval works')"); 8 eval("console.log('PASS (2/2): Eval works')");
9 </script> 9 </script>
10 Done. 10 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698