Fix for bug 52827. Getting the parent window and passing it to the alert and confirm dialogs. r=dveditz, law a=law (I used the old appproval list).

git-svn-id: svn://10.0.0.236/trunk@79664 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbragg%netscape.com
2000-09-20 23:12:03 +00:00
parent 897a841c45
commit 7dbb9e2619
10 changed files with 43 additions and 15 deletions

View File

@@ -373,8 +373,10 @@ PRBool nsXPInstallManager::ConfirmChromeInstall(nsIScriptGlobalObject* aGlobalOb
NS_IMETHODIMP nsXPInstallManager::DialogOpened(nsISupports* aWindow)
{
nsresult rv;
nsCOMPtr<nsIDOMWindowInternal> win = do_QueryInterface(aWindow, &rv);
mParentWindow = do_QueryInterface(aWindow, &rv);
DownloadNext();
return rv;
}
@@ -490,6 +492,7 @@ NS_IMETHODIMP nsXPInstallManager::DownloadNext()
rv = softupdate->InstallJar(mItem->mFile,
mItem->mURL.GetUnicode(),
mItem->mArguments.GetUnicode(),
mParentWindow,
mItem->mFlags,
this );
}