Open Bug 1196329 Opened 9 years ago Updated 3 years ago

Clearing history and downloads cancels downloads which are in progress

Categories

(Toolkit :: Data Sanitization, defect, P3)

40 Branch
defect

Tracking

()

People

(Reporter: joseakhil95, Unassigned)

References

(Depends on 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150807094952

Steps to reproduce:

i was downloading a video file from youtube , suddenly for increasing the speed and performance of the browser i cleared the history and downloads history,( when i use chrome i used to clear the download history and the current download continues its process..)


Actual results:

suddenly my current download also got stopped and i had to download it from the first...



Expected results:

the current download should'nt have stopped 
i think its a valuable bug report
i think its a valuable bug which needed to be rewarded
as most people are concerned about their downloading data
QA Whiteboard: issue in download manager
Whiteboard: issue in download manager
Group: core-security
QA Whiteboard: issue in download manager
Component: Untriaged → Downloads Panel
Summary: Issue in download manager → Clearing history and downloads cancels downloads which are in progress
Whiteboard: issue in download manager
Hmm... 3 years have passed, and no one has confirmed that clearing history cancels all downloads without warning? I've had it happen to me multiple times. Speaking of confirming, how hard would it be for Firefox to simply show a confirmation dialog saying: "All your downloads will be cancelled. Are you sure you want to procede?" Seems like the sensible and logical thing to do.
> a confirmation dialog saying: "All your downloads will be cancelled. Are you sure you want to procede?"

Or even better: "You have X active downloads, which will be cancelled. Are you sure you want to procede?"
Paolo, can you triage this please? Thanks!
Flags: needinfo?(paolo.mozmail)
The expected behavior is to keep the downloads running, but I confirm that they may be cancelled instead.
Status: UNCONFIRMED → NEW
Component: Downloads Panel → Data Sanitization
Ever confirmed: true
Flags: needinfo?(paolo.mozmail)
Product: Firefox → Toolkit
The strange thing is that we *are* calling "removeFinished" [1], but still end up with running downloads being cancelled.

[1] https://dxr.mozilla.org/mozilla-central/rev/d03b538b6b417ba892d0a92fd693945b741246e1/toolkit/components/cleardata/ClearDataService.js#221,222
Severity: normal → S3
Priority: -- → P3

Clearing history and downloads actually does not cancel the ongoing download, the clearing of the active logins cancels the ongoing download.
When clearing active logins the AuthTokensCleaner is called which subsequently leads to a call to the LogoutAuthenticatedPK11 Method of the nsNSSComponent. There just all the network connections are cancelled, there already is a bug about this, a fix for this bug will probably solve the issue here as well.

Depends on: 1446645
See Also: → 603239
You need to log in before you can comment on or make changes to this bug.