Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
This is necessary in order to parse style attributes using the subject principal of the caller, rather than defaulting to the page principal. MozReview-Commit-ID: GIshajQ28la
This commit is contained in:
@@ -5752,6 +5752,7 @@ bool
|
||||
HTMLInputElement::ParseAttribute(int32_t aNamespaceID,
|
||||
nsAtom* aAttribute,
|
||||
const nsAString& aValue,
|
||||
nsIPrincipal* aMaybeScriptedPrincipal,
|
||||
nsAttrValue& aResult)
|
||||
{
|
||||
// We can't make these static_asserts because kInputDefaultType and
|
||||
@@ -5824,7 +5825,7 @@ HTMLInputElement::ParseAttribute(int32_t aNamespaceID,
|
||||
}
|
||||
|
||||
return nsGenericHTMLElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
|
||||
aResult);
|
||||
aMaybeScriptedPrincipal, aResult);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user