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
This commit is contained in:
sfraser%netscape.com 1999-06-19 22:18:52 +00:00
parent 2397a8f3d6
commit 6aabb6033b

View File

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