Fixing bug 257649. Fixing shutdown leak (again) caused by the global scope polluter. r+sr=brendan@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@161598 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com 2004-09-01 19:41:44 +00:00
parent 310816c9c4
commit 00a46e0838

View File

@ -604,7 +604,7 @@ GlobalWindowImpl::SetNewDocument(nsIDOMDocument* aDocument,
::JS_ClearRegExpStatics(cx);
if (gsp) {
nsCOMPtr<nsIHTMLDocument> html_doc(do_QueryInterface(mDocument));
nsCOMPtr<nsIHTMLDocument> html_doc(do_QueryInterface(aDocument));
nsWindowSH::InstallGlobalScopePolluter(cx, mJSObject, gsp,
html_doc);