summaryrefslogtreecommitdiffstats
path: root/embedding
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-03-29 03:48:46 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-03-29 05:07:26 -0400
commit0750e2d3c9075bc5cadc0a706e667acda041dd5b (patch)
tree86c118d6d2657710e96e98dde805c92585adb8d3 /embedding
parentf2b6fd2481ae5e7381a938d52f7d8f14bfc4f5c2 (diff)
downloadUXP-0750e2d3c9075bc5cadc0a706e667acda041dd5b.tar
UXP-0750e2d3c9075bc5cadc0a706e667acda041dd5b.tar.gz
UXP-0750e2d3c9075bc5cadc0a706e667acda041dd5b.tar.lz
UXP-0750e2d3c9075bc5cadc0a706e667acda041dd5b.tar.xz
UXP-0750e2d3c9075bc5cadc0a706e667acda041dd5b.zip
Revert "Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload"
This reverts commit aa28523a553f5e2553c781081eb21715aedb7eaf.
Diffstat (limited to 'embedding')
-rw-r--r--embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp b/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
index a31414e7f..437d21997 100644
--- a/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
+++ b/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
@@ -2351,18 +2351,16 @@ nsWebBrowserPersist::EndDownload(nsresult aResult)
{
mPersistResult = aResult;
}
+
// mCompleted needs to be set before issuing the stop notification.
// (Bug 1224437)
mCompleted = true;
-
-#ifdef MOZ_JSDOWNLOADS
// State stop notification
if (mProgressListener) {
mProgressListener->OnStateChange(nullptr, nullptr,
nsIWebProgressListener::STATE_STOP
| nsIWebProgressListener::STATE_IS_NETWORK, mPersistResult);
}
-#endif
// Do file cleanup if required
if (NS_FAILED(aResult) && (mPersistFlags & PERSIST_FLAGS_CLEANUP_ON_FAILURE))