Bug 1415352: Part 4a - Capture subject principal in innerHTML setters. r=bz
This is necessary in order to capture the correct triggering principal for inline <style> nodes. MozReview-Commit-ID: 9EaD40vRNkH
This commit is contained in:
@@ -147,6 +147,7 @@ HTMLScriptElement::GetInnerHTML(nsAString& aInnerHTML)
|
||||
|
||||
void
|
||||
HTMLScriptElement::SetInnerHTML(const nsAString& aInnerHTML,
|
||||
nsIPrincipal& aScriptedPrincipal,
|
||||
ErrorResult& aError)
|
||||
{
|
||||
aError = nsContentUtils::SetNodeTextContent(this, aInnerHTML, true);
|
||||
|
||||
Reference in New Issue
Block a user