зеркало из https://github.com/mozilla/gecko-dev.git
band-aid patch for bug 134523, so that embeddors can still download files even if they don't have a progress dialog implementation
sr=blake, r=ccarlen
This commit is contained in:
Родитель
dd8c0773df
Коммит
81dcaa0ff8
|
@ -1436,7 +1436,16 @@ nsresult nsExternalAppHandler::ShowProgressDialog()
|
||||||
nsCOMPtr<nsILocalFile> local = do_QueryInterface(mFinalFileDestination);
|
nsCOMPtr<nsILocalFile> local = do_QueryInterface(mFinalFileDestination);
|
||||||
|
|
||||||
nsCOMPtr<nsIDownload> dl = do_CreateInstance("@mozilla.org/download;1", &rv);
|
nsCOMPtr<nsIDownload> dl = do_CreateInstance("@mozilla.org/download;1", &rv);
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) {
|
||||||
|
// we don't have a progress window implementation available,
|
||||||
|
// so we just proceed normally so that we can handle the file
|
||||||
|
// once the download is complete.
|
||||||
|
mProgressWindowCreated = PR_TRUE;
|
||||||
|
|
||||||
|
// however, we do want to indicate that the progress object was
|
||||||
|
// not created, so return an error
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
nsXPIDLString openWith(NS_LITERAL_STRING(""));
|
nsXPIDLString openWith(NS_LITERAL_STRING(""));
|
||||||
nsMIMEInfoHandleAction action = nsIMIMEInfo::saveToDisk;
|
nsMIMEInfoHandleAction action = nsIMIMEInfo::saveToDisk;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче