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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-blob-inherits-csp.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' http://127.0.0.1:8000"/>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <script>
10 async_test(function () {
11 var blob = new Blob([
12 "try {" +
13 " importScripts('http://localhost:8000/security/contentSecurityPoli cy/resources/post-message.js');" +
14 "} catch (err) { }" +
15 "postMessage('done');"
16 ]);
17 var worker = new Worker(window.URL.createObjectURL(blob));
18 worker.onmessage = this.step_func(function (evt) {
19 this.done();
20 });
21 }, "Blob worker inherits CSP");
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698