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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp

Issue 2436053002: Relax '*' in CSPSourceList to match the FTP protocol. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
index 0c611d8c8035386e6c8a723f8c5206b8c6862a0e..f75e95a98985ce39c642e098e95f5bab320ce2d0 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp
@@ -75,6 +75,7 @@ TEST_F(CSPSourceListTest, BasicMatchingStar) {
EXPECT_TRUE(sourceList.matches(KURL(base, "http://example.com/bar")));
EXPECT_TRUE(sourceList.matches(KURL(base, "http://foo.example.com/")));
EXPECT_TRUE(sourceList.matches(KURL(base, "http://foo.example.com/bar")));
+ EXPECT_TRUE(sourceList.matches(KURL(base, "ftp://example.com/")));
EXPECT_FALSE(sourceList.matches(KURL(base, "data:https://example.test/")));
EXPECT_FALSE(sourceList.matches(KURL(base, "blob:https://example.test/")));
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698