Index: third_party/WebKit/Source/core/loader/MixedContentChecker.cpp |
diff --git a/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp b/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp |
index effce10dc0bf0b6db71129c7f1e2a7c1b2b6ebf1..81b0a26b225f3e26f491acbd5b8dcda6d3d4e70f 100644 |
--- a/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp |
+++ b/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp |
@@ -87,8 +87,9 @@ bool MixedContentChecker::isMixedContent(SecurityOrigin* securityOrigin, const K |
if (!SchemeRegistry::shouldTreatURLSchemeAsRestrictingMixedContent(securityOrigin->protocol())) |
return false; |
- // We're in a secure context, so |url| is mixed content if it's insecure. |
- return !SecurityOrigin::isSecure(url); |
+ // |url| is mixed content if its origin is not potentially trustworthy, and |
+ // its protocol is not 'data'. |
+ return !(SecurityOrigin::create(url)->isPotentiallyTrustworthy() || url.protocolIsData()); |
} |
// static |