mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Don't run JS GC when creating a new window. b=42321 r,sr = jst,brendan
This commit is contained in:
parent
81fb2b8290
commit
a29fe8e589
@ -392,7 +392,7 @@ NS_IMETHODIMP GlobalWindowImpl::SetNewDocument(nsIDOMDocument* aDocument)
|
||||
mDocument = nsnull; // Forces Release
|
||||
}
|
||||
|
||||
if (mContext && aDocument) {
|
||||
if (mContext && aDocument && mDocument) {
|
||||
// Add an extra ref in case we release mContext during GC.
|
||||
nsCOMPtr<nsIScriptContext> kungFuDeathGrip = mContext;
|
||||
kungFuDeathGrip->GC();
|
||||
|
Loading…
Reference in New Issue
Block a user