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
Родитель 0ccbb9082a
Коммит fabdcd910a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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;