mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Revert "Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload"
This reverts commit aa28523a553f5e2553c781081eb21715aedb7eaf.
This commit is contained in:
parent
593ea86a68
commit
99d102cf2d
1 changed files with 1 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue