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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php
index f379700342384c7adf5830edb7f515eb508f9f4b..917b505f8350a1af5b5d7562beae9701f0750b9b 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandboxed-eval.php
@@ -2,9 +2,9 @@
header("Content-Security-Policy: sandbox allow-scripts");
?>
<script>
-alert('PASS (1/2): Script can execute');
+console.log('PASS (1/2): Script can execute');
</script>
<script>
-eval("alert('PASS (2/2): Eval works')");
+eval("console.log('PASS (2/2): Eval works')");
</script>
Done.

Powered by Google App Engine
This is Rietveld 408576698