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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html

Issue 131103003: CSP: Add a mechanism to disable CSP 1.1 for layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode-and-sends-report.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html b/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html
index ec5b8eaf01722a5e3041457dfe65f0b6e95b318a..0ff0e8d4dbbcdb73d8bfacead881a115931b1c90 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode.html
@@ -1,13 +1,16 @@
<!DOCTYPE html>
<html>
<head>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ if (window.internals)
+ internals.settings.setExperimentalContentSecurityPolicyFeaturesEnabled(false);
+ </script>
<meta http-equiv="Content-Security-Policy-Report-Only" content="script-src 'self' 'unsafe-inline'">
</head>
<body>
<script>
- if (window.testRunner)
- testRunner.dumpAsText();
-
try {
eval("alert('PASS: eval() executed as expected.');");
} catch(e) {
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode-and-sends-report.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698