Bug 1132934 part 1. Actually propagate out exceptions from the innerHTML getter. r=smaug
MozReview-Commit-ID: KEqsx836qQn
This commit is contained in:
@@ -152,13 +152,12 @@ HTMLStyleElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
|
||||
aOldValue, aSubjectPrincipal, aNotify);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLStyleElement::GetInnerHTML(nsAString& aInnerHTML)
|
||||
void
|
||||
HTMLStyleElement::GetInnerHTML(nsAString& aInnerHTML, ErrorResult& aRv)
|
||||
{
|
||||
if (!nsContentUtils::GetNodeTextContent(this, false, aInnerHTML, fallible)) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
aRv.Throw(NS_ERROR_OUT_OF_MEMORY);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user