зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1526971 - Revert over-zealous error checking in nsDataObj::GetDownloadDetails() from bug 571074. r=mats
This commit is contained in:
Родитель
81e464a600
Коммит
6058d31f3a
|
@ -24,6 +24,7 @@
|
|||
#include "nsIURL.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "mozilla/Services.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nscore.h"
|
||||
#include "nsDirectoryServiceDefs.h"
|
||||
|
@ -1964,9 +1965,8 @@ HRESULT nsDataObj::GetDownloadDetails(nsIURI** aSourceURI,
|
|||
|
||||
nsAutoString srcFileName;
|
||||
nsCOMPtr<nsISupports> fileNamePrimitive;
|
||||
rv = mTransferable->GetTransferData(kFilePromiseDestFilename,
|
||||
getter_AddRefs(fileNamePrimitive));
|
||||
NS_ENSURE_SUCCESS(rv, E_FAIL);
|
||||
Unused << mTransferable->GetTransferData(kFilePromiseDestFilename,
|
||||
getter_AddRefs(fileNamePrimitive));
|
||||
nsCOMPtr<nsISupportsString> srcFileNamePrimitive =
|
||||
do_QueryInterface(fileNamePrimitive);
|
||||
if (srcFileNamePrimitive) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче