Index: Source/core/html/parser/XSSAuditor.h |
diff --git a/Source/core/html/parser/XSSAuditor.h b/Source/core/html/parser/XSSAuditor.h |
index cd43163245591099154d920eef65c4e9251f8d2e..d4126ce0a61541a23c35c1c45676d2c9aa651da0 100644 |
--- a/Source/core/html/parser/XSSAuditor.h |
+++ b/Source/core/html/parser/XSSAuditor.h |
@@ -82,6 +82,11 @@ private: |
ScriptLikeAttributeTruncation |
}; |
+ enum HrefRestriction { |
+ ProhibitSameOriginHref, |
+ AllowSameOriginHref |
+ }; |
+ |
bool filterStartToken(const FilterTokenRequest&); |
void filterEndToken(const FilterTokenRequest&); |
bool filterCharacterToken(const FilterTokenRequest&); |
@@ -96,9 +101,10 @@ private: |
bool filterFormToken(const FilterTokenRequest&); |
bool filterInputToken(const FilterTokenRequest&); |
bool filterButtonToken(const FilterTokenRequest&); |
+ bool filterLinkToken(const FilterTokenRequest&); |
bool eraseDangerousAttributesIfInjected(const FilterTokenRequest&); |
- bool eraseAttributeIfInjected(const FilterTokenRequest&, const QualifiedName&, const String& replacementValue = String(), TruncationKind treatment = NormalAttributeTruncation); |
+ bool eraseAttributeIfInjected(const FilterTokenRequest&, const QualifiedName&, const String& replacementValue = String(), TruncationKind = NormalAttributeTruncation, HrefRestriction = ProhibitSameOriginHref); |
String canonicalizedSnippetForTagName(const FilterTokenRequest&); |
String canonicalizedSnippetForJavaScript(const FilterTokenRequest&); |