Bug 837416 follow-up: don't throw success

This commit is contained in:
Ehsan Akhgari 2013-02-03 14:39:07 -05:00
parent 8aaab85573
commit 8ca971b7f9

View File

@ -102,7 +102,10 @@ HTMLStyleElement::SetDisabled(bool aDisabled, ErrorResult& aError)
return;
}
aError.Throw(ss->SetDisabled(aDisabled));
nsresult result = ss->SetDisabled(aDisabled);
if (NS_FAILED(result)) {
aError.Throw(result);
}
}
NS_IMPL_STRING_ATTR(HTMLStyleElement, Media, media)