mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Backing out dbaron's last change for bug 42321 which prevented mozilla from running the JS GC when going from page to page, this caused bugscape blocker bug 5073. r/sr=vidur&rpotts
This commit is contained in:
parent
6a7db91347
commit
372a877971
@ -392,7 +392,7 @@ NS_IMETHODIMP GlobalWindowImpl::SetNewDocument(nsIDOMDocument* aDocument)
|
||||
mDocument = nsnull; // Forces Release
|
||||
}
|
||||
|
||||
if (mContext && aDocument && mDocument) {
|
||||
if (mContext && aDocument) {
|
||||
// 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