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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html

Issue 2890763002: Un-skipped wpt/content-security-policy/base-uri (Closed)
Patch Set: CR changes Created 3 years, 7 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/1.1/base-uri-deny.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html
deleted file mode 100644
index ef2ac6f56c69557d7439261f3ba3f27419c4b1d7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/base-uri-deny.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="Content-Security-Policy" content="base-uri 'self'">
- <script src="http://localhost:8000/js-test-resources/js-test.js"></script>
- <script src="http://localhost:8000/security/contentSecurityPolicy/resources/securitypolicyviolation-test.js"></script>
- <script>
- description('Check that base URIs cannot be set if they violate the page\'s policy.');
-
- var expectations = {
- 'documentURI': document.location.toString(),
- 'referrer': document.referrer,
- 'blockedURI': 'http://example.com/base',
- 'violatedDirective': 'base-uri',
- 'effectiveDirective': 'base-uri',
- 'originalPolicy': 'base-uri \'self\'',
- 'sourceFile': document.location.toString(),
- 'lineNumber': 24
- };
-
- function run() {
- var base = document.createElement('base');
- base.href = 'http://example.com/base';
- document.head.appendChild(base);
-
- shouldBe('document.baseURI', 'document.location.href');
- }
- </script>
-</head>
-<body>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698