Bug 1526971 - Revert over-zealous error checking in nsDataObj::GetDownloadDetails() from bug 571074. r=mats

This commit is contained in:
Jorg K 2019-02-11 15:44:00 +02:00
Родитель 81e464a600
Коммит 6058d31f3a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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) {