Index: third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp |
index 39a5b57030bd66af99de2d67a89606f54686c9bc..b7c4aaa36e84e512f1eed9a2502a6b2911162e30 100644 |
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp |
@@ -491,6 +491,7 @@ bool XSSAuditor::filterScriptToken(const FilterTokenRequest& request) |
m_scriptTagFoundInRequest = isContainedInRequest(canonicalizedSnippetForTagName(request)); |
if (m_scriptTagFoundInRequest) { |
didBlockScript |= eraseAttributeIfInjected(request, srcAttr, blankURL().string(), SrcLikeAttributeTruncation); |
+ didBlockScript |= eraseAttributeIfInjected(request, SVGNames::hrefAttr, blankURL().string(), SrcLikeAttributeTruncation); |
didBlockScript |= eraseAttributeIfInjected(request, XLinkNames::hrefAttr, blankURL().string(), SrcLikeAttributeTruncation); |
} |
return didBlockScript; |