diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-01-31 07:35:32 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-01-31 07:35:32 -0500 |
commit | aa28523a553f5e2553c781081eb21715aedb7eaf (patch) | |
tree | 7331fd60455cf9cecf93e82be04db68c7e027ecb /embedding/components/webbrowserpersist | |
parent | dcc5d6a782d25ab8dbcf6cd9179539e33344ede2 (diff) | |
download | UXP-aa28523a553f5e2553c781081eb21715aedb7eaf.tar UXP-aa28523a553f5e2553c781081eb21715aedb7eaf.tar.gz UXP-aa28523a553f5e2553c781081eb21715aedb7eaf.tar.lz UXP-aa28523a553f5e2553c781081eb21715aedb7eaf.tar.xz UXP-aa28523a553f5e2553c781081eb21715aedb7eaf.zip |
Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload
Diffstat (limited to 'embedding/components/webbrowserpersist')
-rw-r--r-- | embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp | 4 |
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)) |