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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-11.html

Issue 1367933003: CSP source *.x.y should not match host x.y (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 3 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/source-list-parsing-11.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-11.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-11.html
new file mode 100644
index 0000000000000000000000000000000000000000..6034c64757786ab54ab54a1e63e9df938474fdb1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-11.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>*.x.y should match only hosts that end in .x.y</title>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <meta http-equiv="Content-Security-Policy" content="script-src *.localhost:8000 'self' 'unsafe-inline'">
+ </head>
+ <script>
+ window.result = false;
+ </script>
+ <script src="//localhost:8000/security/contentSecurityPolicy/resources/script-set-value.js"></script>
+ <script>
+ assert_false(window.result);
+ done();
+ </script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698