[X2Go-Commits] [pale-moon] 56/102: Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload
git-admin at x2go.org
git-admin at x2go.org
Mon Feb 25 23:25:50 CET 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch upstream/28.4.0
in repository pale-moon.
commit aa28523a553f5e2553c781081eb21715aedb7eaf
Author: Matt A. Tobin <email at mattatobin.com>
Date: Thu Jan 31 07:35:32 2019 -0500
Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload
---
embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp b/embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp
index 437d219..a31414e 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))
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git
More information about the x2go-commits
mailing list