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:
jst%netscape.com 2001-05-23 00:15:54 +00:00
parent 6a7db91347
commit 372a877971

View File

@ -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();