summaryrefslogtreecommitdiff
path: root/dom/base/nsTreeSanitizer.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-10-06 12:07:40 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-10-06 12:07:40 -0500
commit6cdd0210fb14e8a1ed256e934f05f758afc4a6ab (patch)
treeae810fb774a340b2a3d4a0f8b6b9a68e6423e596 /dom/base/nsTreeSanitizer.h
parente4ed223f80260aa735a77bc4cfff25b76f3e7a94 (diff)
parent14f8e3e2e95e86a995627add57bf71de7c7edcaa (diff)
downloadaura-central-6cdd0210fb14e8a1ed256e934f05f758afc4a6ab.tar.gz
Merge branch 'EXTERNAL' into TRUNKHEADTRUNK
Diffstat (limited to 'dom/base/nsTreeSanitizer.h')
-rw-r--r--dom/base/nsTreeSanitizer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/base/nsTreeSanitizer.h b/dom/base/nsTreeSanitizer.h
index b4a333f61..fe4917150 100644
--- a/dom/base/nsTreeSanitizer.h
+++ b/dom/base/nsTreeSanitizer.h
@@ -143,11 +143,13 @@ class MOZ_STACK_CLASS nsTreeSanitizer {
* @param aElement the element whose attribute to possibly modify
* @param aNamespace the namespace of the URL attribute
* @param aLocalName the local name of the URL attribute
+ * @param aFragmentOnly allows same-document references only
* @return true if the attribute was removed and false otherwise
*/
bool SanitizeURL(mozilla::dom::Element* aElement,
int32_t aNamespace,
- nsIAtom* aLocalName);
+ nsIAtom* aLocalName,
+ bool aFragmentOnly = false);
/**
* Checks a style rule for the presence of the 'binding' CSS property and