bug 314091 Fix users of mozAutoDocUpdate to actually declare a local variable,
so that the destructor doesn't get called immediately r+sr=bz
This commit is contained in:
@@ -979,7 +979,7 @@ nsObjectLoadingContent::NotifyStateChanged(ObjectType aOldType,
|
||||
PRInt32 changedBits = aOldState ^ newState;
|
||||
|
||||
{
|
||||
mozAutoDocUpdate(doc, UPDATE_CONTENT_STATE, PR_TRUE);
|
||||
mozAutoDocUpdate upd(doc, UPDATE_CONTENT_STATE, PR_TRUE);
|
||||
doc->ContentStatesChanged(thisContent, nsnull, changedBits);
|
||||
}
|
||||
if (aSync) {
|
||||
|
||||
Reference in New Issue
Block a user