Index: Source/core/loader/MixedContentChecker.cpp |
diff --git a/Source/core/loader/MixedContentChecker.cpp b/Source/core/loader/MixedContentChecker.cpp |
index eaf260815cb566521c37d83f28b53c8df68713b3..7cab790dc27f2430228f860b39dcea0a098875e3 100644 |
--- a/Source/core/loader/MixedContentChecker.cpp |
+++ b/Source/core/loader/MixedContentChecker.cpp |
@@ -402,13 +402,12 @@ void MixedContentChecker::checkMixedPrivatePublic(LocalFrame* frame, const Atomi |
if (!frame || !frame->document() || !frame->document()->loader()) |
return; |
- KURL documentIP(ParsedURLString, "http://" + frame->document()->loader()->response().remoteIPAddress()); |
KURL resourceIP(ParsedURLString, "http://" + resourceIPAddress); |
// Just count these for the moment, don't block them. |
// |
// FIXME: Once we know how we want to check this, adjust the platform APIs to avoid the KURL construction. |
- if (Platform::current()->isReservedIPAddress(resourceIP) && !Platform::current()->isReservedIPAddress(documentIP)) |
+ if (Platform::current()->isReservedIPAddress(resourceIP) && !frame->document()->isHostedInReservedIPRange()) |
UseCounter::count(frame->document(), UseCounter::MixedContentPrivateHostnameInPublicHostname); |
} |