mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 01:57:30 +09:00
Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload
This commit is contained in:
parent
496aae0631
commit
120aa8a81e
1 changed files with 3 additions and 1 deletions
|
|
@ -2351,16 +2351,18 @@ nsWebBrowserPersist::EndDownload(nsresult aResult)
|
||||||
{
|
{
|
||||||
mPersistResult = aResult;
|
mPersistResult = aResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
// mCompleted needs to be set before issuing the stop notification.
|
// mCompleted needs to be set before issuing the stop notification.
|
||||||
// (Bug 1224437)
|
// (Bug 1224437)
|
||||||
mCompleted = true;
|
mCompleted = true;
|
||||||
|
|
||||||
|
#ifdef MOZ_JSDOWNLOADS
|
||||||
// State stop notification
|
// State stop notification
|
||||||
if (mProgressListener) {
|
if (mProgressListener) {
|
||||||
mProgressListener->OnStateChange(nullptr, nullptr,
|
mProgressListener->OnStateChange(nullptr, nullptr,
|
||||||
nsIWebProgressListener::STATE_STOP
|
nsIWebProgressListener::STATE_STOP
|
||||||
| nsIWebProgressListener::STATE_IS_NETWORK, mPersistResult);
|
| nsIWebProgressListener::STATE_IS_NETWORK, mPersistResult);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Do file cleanup if required
|
// Do file cleanup if required
|
||||||
if (NS_FAILED(aResult) && (mPersistFlags & PERSIST_FLAGS_CLEANUP_ON_FAILURE))
|
if (NS_FAILED(aResult) && (mPersistFlags & PERSIST_FLAGS_CLEANUP_ON_FAILURE))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue