mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 483341. End updates before removing script blockers. r=smaug, sr=sicking
This commit is contained in:
parent
787ed09286
commit
9e04673a25
@ -3694,26 +3694,26 @@ nsDocument::BeginUpdate(nsUpdateType aUpdateType)
|
||||
}
|
||||
|
||||
++mUpdateNestLevel;
|
||||
NS_DOCUMENT_NOTIFY_OBSERVERS(BeginUpdate, (this, aUpdateType));
|
||||
|
||||
if (aUpdateType == UPDATE_CONTENT_MODEL) {
|
||||
nsContentUtils::AddRemovableScriptBlocker();
|
||||
}
|
||||
else {
|
||||
nsContentUtils::AddScriptBlocker();
|
||||
}
|
||||
NS_DOCUMENT_NOTIFY_OBSERVERS(BeginUpdate, (this, aUpdateType));
|
||||
}
|
||||
|
||||
void
|
||||
nsDocument::EndUpdate(nsUpdateType aUpdateType)
|
||||
{
|
||||
NS_DOCUMENT_NOTIFY_OBSERVERS(EndUpdate, (this, aUpdateType));
|
||||
|
||||
if (aUpdateType == UPDATE_CONTENT_MODEL) {
|
||||
nsContentUtils::RemoveRemovableScriptBlocker();
|
||||
}
|
||||
else {
|
||||
nsContentUtils::RemoveScriptBlocker();
|
||||
}
|
||||
NS_DOCUMENT_NOTIFY_OBSERVERS(EndUpdate, (this, aUpdateType));
|
||||
|
||||
--mUpdateNestLevel;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user