summaryrefslogtreecommitdiff
path: root/embedding/components
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-01-31 07:35:32 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-01-31 07:35:32 -0500
commita6786d262c428ac3a720756bd435444756877697 (patch)
tree7331fd60455cf9cecf93e82be04db68c7e027ecb /embedding/components
parentf7c950e00f24c94b4d3a205c835c503b4b7c1f6d (diff)
downloadaura-central-a6786d262c428ac3a720756bd435444756877697.tar.gz
Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload
Diffstat (limited to 'embedding/components')
-rw-r--r--embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp b/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
index 437d21997..a31414e7f 100644
--- a/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
+++ b/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
@@ -2351,16 +2351,18 @@ 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))