Index: third_party/WebKit/Source/web/WebFrameSerializer.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrameSerializer.cpp b/third_party/WebKit/Source/web/WebFrameSerializer.cpp |
index 8dd4fd826ff07edc13d1bf0c8f2067da67d865fd..8be7cd1212504db6c1eb6288129adb516578be70 100644 |
--- a/third_party/WebKit/Source/web/WebFrameSerializer.cpp |
+++ b/third_party/WebKit/Source/web/WebFrameSerializer.cpp |
@@ -183,6 +183,13 @@ bool MHTMLFrameSerializerDelegate::ShouldIgnoreAttribute( |
if (attribute.LocalName() == HTMLNames::srcsetAttr) |
return true; |
+ // Do not save ping attribute since anyway the ping will be blocked from |
+ // MHTML. |
+ if (isHTMLAnchorElement(element) && |
+ attribute.LocalName() == HTMLNames::pingAttr) { |
+ return true; |
+ } |
+ |
// If srcdoc attribute for frame elements will be rewritten as src attribute |
// containing link instead of html contents, don't ignore the attribute. |
// Bail out now to avoid the check in Element::isScriptingAttribute. |