Index: third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
diff --git a/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp b/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
index a2538aeb8a084b61d49f1632f6554063fa133d1f..bd402d7ba158b983a8d07121f6535c88447cb5cc 100644 |
--- a/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
+++ b/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
@@ -25,12 +25,18 @@ TEST(MixedContentCheckerTest, IsMixedContent) |
} cases[] = { |
{"http://example.com/foo", "http://example.com/foo", false}, |
{"http://example.com/foo", "https://example.com/foo", false}, |
+ {"http://example.com/foo", "data:text/html,<p>Hi!</p>", false}, |
{"https://example.com/foo", "https://example.com/foo", false}, |
{"https://example.com/foo", "wss://example.com/foo", false}, |
+ {"https://example.com/foo", "data:text/html,<p>Hi!</p>", false}, |
+ {"https://example.com/foo", "http://127.0.0.1/", false}, |
+ {"https://example.com/foo", "http://localhost/", false}, |
+ |
{"https://example.com/foo", "http://example.com/foo", true}, |
{"https://example.com/foo", "http://google.com/foo", true}, |
{"https://example.com/foo", "ws://example.com/foo", true}, |
{"https://example.com/foo", "ws://google.com/foo", true}, |
+ {"https://example.com/foo", "http://192.168.1.1/", true}, |
}; |
for (size_t i = 0; i < WTF_ARRAY_LENGTH(cases); ++i) { |