mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 400735: Hold strong reference while calling UnblockOnload. r=smaug sr=jst a=beltzner
This commit is contained in:
parent
7e7bb50612
commit
ef00ebb9f1
@ -915,7 +915,10 @@ nsBindingManager::DoProcessAttachedQueue()
|
||||
mProcessAttachedQueueEvent = nsnull;
|
||||
|
||||
if (mDocument) {
|
||||
mDocument->UnblockOnload(PR_TRUE);
|
||||
// Hold a strong reference while calling UnblockOnload since that might
|
||||
// run script.
|
||||
nsCOMPtr<nsIDocument> doc = mDocument;
|
||||
doc->UnblockOnload(PR_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user