Index: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
index 2d26db19eb478aa0d1c6e2674f410ce54675e970..ad4d58253fad592257d9449b89e8e1f0967680f4 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp |
@@ -37,6 +37,7 @@ |
#include "core/loader/PingLoader.h" |
#include "core/page/ChromeClient.h" |
#include "core/page/Page.h" |
+#include "platform/loader/fetch/ResourceFetcher.h" |
#include "platform/network/NetworkHints.h" |
#include "platform/weborigin/SecurityPolicy.h" |
@@ -305,6 +306,10 @@ void HTMLAnchorElement::SendPings(const KURL& destination_url) const { |
!GetDocument().GetSettings()->GetHyperlinkAuditingEnabled()) |
return; |
+ // Pings should not be sent if MHTML page is loaded. |
+ if (GetDocument().Fetcher()->Archive()) |
+ return; |
+ |
UseCounter::Count(GetDocument(), UseCounter::kHTMLAnchorElementPingAttribute); |
SpaceSplitString ping_urls(ping_value, SpaceSplitString::kShouldNotFoldCase); |