Bug 1959727 - Add the sanitizer option to setHTMLUnsafe. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D247109
This commit is contained in:
committed by
tschuster@mozilla.com
parent
1201316c8c
commit
ae7f13512d
@@ -5493,10 +5493,12 @@ EditorBase* Element::GetExtantEditor() const {
|
||||
}
|
||||
|
||||
void Element::SetHTMLUnsafe(const TrustedHTMLOrString& aHTML,
|
||||
const SetHTMLUnsafeOptions& aOptions,
|
||||
nsIPrincipal* aSubjectPrincipal,
|
||||
ErrorResult& aError) {
|
||||
nsContentUtils::SetHTMLUnsafe(this, this, aHTML, false /*aIsShadowRoot*/,
|
||||
aSubjectPrincipal, aError);
|
||||
nsContentUtils::SetHTMLUnsafe(this, this, aHTML, aOptions,
|
||||
false /*aIsShadowRoot*/, aSubjectPrincipal,
|
||||
aError);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/#event-beforematch
|
||||
|
||||
Reference in New Issue
Block a user