Bug 785574 - Add a script blocker in nsHTMLEditor::SetAttributeOrEquivalent; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2012-08-29 16:43:32 -04:00
parent 0ccbb9082a
commit fabdcd910a

View File

@ -4554,6 +4554,8 @@ nsHTMLEditor::SetAttributeOrEquivalent(nsIDOMElement * aElement,
const nsAString & aValue,
bool aSuppressTransaction)
{
nsAutoScriptBlocker scriptBlocker;
nsresult res = NS_OK;
if (IsCSSEnabled() && mHTMLCSSUtils) {
int32_t count;