| 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 1f87e09738f604b3b8c8ee82b06f674b254964fc..a6bb3b0c86e63823f9a94915bfbffb25a23cefd4 100644
|
| --- a/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp
|
| @@ -430,6 +430,16 @@ void MixedContentChecker::checkMixedPrivatePublic(
|
| frame->document()->addressSpace() == WebAddressSpacePublic) {
|
| UseCounter::count(frame->document(),
|
| UseCounter::MixedContentPrivateHostnameInPublicHostname);
|
| + // We can simplify the IP checks here, as we've already verified that
|
| + // |resourceIPAddress| is a reserved IP address, which means it's also a
|
| + // valid IP address in a normalized form.
|
| + if (resourceIPAddress.startsWith("127.0.0.") ||
|
| + resourceIPAddress == "[::1]") {
|
| + UseCounter::count(frame->document(),
|
| + frame->document()->isSecureContext()
|
| + ? UseCounter::LoopbackEmbeddedInSecureContext
|
| + : UseCounter::LoopbackEmbeddedInNonSecureContext);
|
| + }
|
| }
|
| }
|
|
|
|
|