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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-multiple-csp-headers.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-multiple-csp-headers.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-multiple-csp-headers.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-multiple-csp-headers.html
deleted file mode 100644
index 1a295569542a777e2ead7cb8bd20e057ee63b14a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worker-multiple-csp-headers.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
- <script>
- async_test(function () {
- var worker = new Worker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/worker.php?type=multiple-headers');
- var evalBlocked = false;
- var xhrBlocked = false;
- var numMessages = 0;
-
- worker.onmessage = this.step_func(function (event) {
- numMessages++;
- if (event.data === "xhr blocked")
- xhrBlocked = true;
- if (event.data === "eval blocked")
- evalBlocked = true;
-
- if (numMessages === 2) {
- assert_true(xhrBlocked);
- assert_true(evalBlocked);
- this.done();
- }
- });
- }, "Worker can have multiple CSP headers");
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698