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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user