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

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

Issue 2540983003: CSP: Dedicated workers always inherit policy. (Closed)
Patch Set: Rebase. 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 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <meta http-equiv="Content-Security-Policy" content="child-src 'self'; connec t-src 'none'">
7 </head>
8 <body>
9 <script>
10 var t = async_test("worker redirects to location disallowed by connect-s rc");
11 var worker = new Worker("/security/resources/redir.php?url=" + e ncodeURIComponent("http://127.0.0.1:8000/security/contentSecurityPolicy/resource s/worker-postmessage.js"));
12 worker.addEventListener("message", function () {
13 t.done();
14 });
15 worker.postMessage("go");
16 </script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698