From 6aabb6033bb8df75b59382ee0d2e41b4ba5a01c8 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Sat, 19 Jun 1999 22:18:52 +0000 Subject: [PATCH] Preliminary fix for 8555; JS contexts not properly cleaned up on window close. git-svn-id: svn://10.0.0.236/trunk@35935 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 9982876f2b3..38a8027bb5e 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -264,8 +264,8 @@ GlobalWindowImpl::SetNewDocument(nsIDOMDocument *aDocument) ClearAllTimeouts(); if ((nsnull != mScriptObject) && - (nsnull != mContext) && - (nsnull != aDocument)) { + (nsnull != mContext) /* && + (nsnull != aDocument) */ ) { JS_ClearScope((JSContext *)mContext->GetNativeContext(), (JSObject *)mScriptObject); }