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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-script-src.html

Issue 2533313002: CSP: Move 'worker-src' onto 'script-src' (Closed)
Patch Set: WPT. Created 3 years, 9 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'"/ >
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 }
9 </script>
10 </head>
11 <body>
12 <script>
13 try {
14 var worker = new Worker('http://127.0.0.1:8000/security/contentSecurityPolic y/resources/worker.php?type=alert-pass&csp=' +
15 encodeURIComponent("script-src 'self' 'unsafe-inlin e'"));
16 alert("PASS");
17 } catch (e) {
18 alert(e);
19 }
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698