Fixing the mail bustage. Was accidently using the internal object instead of the one passed in.

This commit is contained in:
tbogard%aol.net 1999-12-03 21:41:35 +00:00
parent 1fb4874905
commit d6a8d07409

View File

@ -2537,7 +2537,7 @@ GlobalWindowImpl::ReadyOpenedWebShell(nsIWebShell *aWebShell, nsIDOMWindow **aDO
nsresult res;
*aDOMWindow = nsnull;
nsCOMPtr<nsIScriptGlobalObject> globalObject(do_GetInterface(mWebShell));
nsCOMPtr<nsIScriptGlobalObject> globalObject(do_GetInterface(aWebShell));
NS_ENSURE_TRUE(globalObject, NS_ERROR_FAILURE);
res = CallQueryInterface(globalObject.get(), aDOMWindow);
globalObject->SetOpenerWindow(this); // damnit