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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/embeddedEnforcement/subsumption_algorithm-general.html

Issue 2799613003: Un-skipped wpt embedded enforcement tests (Closed)
Patch Set: Created 3 years, 8 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/embeddedEnforcement/subsumption_algorithm-general.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/embeddedEnforcement/subsumption_algorithm-general.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/embeddedEnforcement/subsumption_algorithm-general.html
deleted file mode 100644
index f5bf03fc72ade80ed097ddab96a2c1cf48311bfc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/embeddedEnforcement/subsumption_algorithm-general.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="/security/contentSecurityPolicy/resources/child-csp-test.js"></script>
-</head>
-<body>
- <script>
- async_test(t => {
- url = generateUrlWithCSP(CROSS_ORIGIN, "");
- injectIframeWithCSP(url, EXPECT_LOAD, "", t, "0");
- }, "If there is no required csp, the page should load.");
-
- async_test(t => {
- required_csp = "frame-src http://c.com:*";
- url = generateUrlWithCSP(CROSS_ORIGIN, "");
- injectIframeWithCSP(url, EXPECT_BLOCK, required_csp, t, "1");
- }, "Iframe with empty CSP should be blocked.");
-
- async_test(t => {
- required_csp = "frame-src http://c.com:443 http://b.com:80";
- returned_csp = "frame-src http://b.com:80 http://c.com:443";
- url = generateUrlWithCSP(CROSS_ORIGIN, returned_csp);
- injectIframeWithCSP(url, EXPECT_LOAD, required_csp, t, "2");
- }, "Iframe with matching CSP should load.");
-
- async_test(t => {
- required_csp = "frame-src http://c.com:443 http://b.com:80 http://c.com:* http://a.com";
- returned_csp = "frame-src http://b.com:80 http://c.com:443";
- url = generateUrlWithCSP(CROSS_ORIGIN, returned_csp);
- injectIframeWithCSP(url, EXPECT_LOAD, required_csp, t, "3");
- }, "Iframe with more restricting CSP should load.");
-
- async_test(t => {
- required_csp = "frame-src http://b.com:80";
- returned_csp = "frame-src http://b.com:80 http://c.com:443";
- url = generateUrlWithCSP(CROSS_ORIGIN, returned_csp);
- injectIframeWithCSP(url, EXPECT_BLOCK, required_csp, t, "4");
- }, "Iframe with less restricting CSP should be blocked.");
-
- async_test(t => {
- required_csp = "frame-src http://a.com:80";
- returned_csp = "frame-src http://b.com:80 http://c.com:443";
- url = generateUrlWithCSP(CROSS_ORIGIN, returned_csp);
- injectIframeWithCSP(url, EXPECT_BLOCK, required_csp, t, "5");
- }, "Iframe with a different CSP should be blocked.");
-
- async_test(t => {
- required_csp = "frame-src http://c.com:443 http://b.com";
- returned_csp = "frame-src http://b.com:80 http://c.com:443";
- url = generateUrlWithCSP(CROSS_ORIGIN, returned_csp);
- injectIframeWithCSP(url, EXPECT_LOAD, required_csp, t, "6");
- }, "Iframe with a matching and more restrictive ports should load.");
-
- async_test(t => {
- required_csp = "frame-src http://b.com:80";
- returned_csp = "child-src https://b.com:443";
- url = generateUrlWithCSP(CROSS_ORIGIN, returned_csp);
- injectIframeWithCSP(url, EXPECT_LOAD, required_csp, t, "7");
- }, "Iframe must load even if the ports are different but are default for the protocols.");
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698