Closed Bug 1492404 Opened 7 years ago Closed 7 years ago

Partial downloads are not removed when "Clear on exit" is used

Categories

(Firefox for Android Graveyard :: Download Manager, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox62 wontfix, firefox63 verified, firefox64 verified)

VERIFIED FIXED
Firefox 64
Tracking Status
firefox62 --- wontfix
firefox63 --- verified
firefox64 --- verified

People

(Reporter: petru, Assigned: petru)

References

()

Details

Attachments

(1 file)

Environment: Devices: - Sony Z5 (Android 7.1.0) - Samsung S7 (Android 8.0) Build: Release 62, Nightly 64 Steps to reproduce: 1. Launch Fennec; 2. Go to Settings -> Privacy -> Clear private data on exit; 3. Check "Downloads" and tap Set; 4. Start a download (e.g. from https://www.thinkbroadband.com/download); 5. Tap Options and select "Quit" from the menu; 6. Choose to cancel all downloads when asked so; 7. Relaunch Fennec; 8. Go to Settings -> Tools -> Downloads; 9. With a Files Manager app check the Download folder; Expected result: The app quits cleanly and the entire list of downloads is cleared both from history and from the Download folder. Actual result: Partial downloads are still kept in history and in the Download folder.
See Also: → 1492405
Assignee: nobody → petru.lingurar
Status: NEW → ASSIGNED
Has STR: --- → yes
See Also: → 1351308
Hardware: Unspecified → ARM
Version: Firefox 62 → Trunk
While investigating this I saw that going to > Settings -> Clear private data with Downloads checked also does not clear the partial downloads (paused or ongoing).
Both ways ultimately end up with the Sanitizer (Sanitizer.jsm), so that's not totally unexpected.
Whenever Fennec asks to sanitize downloads all downloads will be deleted, irrespective of their current status (will include in progress downloads). Only when browsingData.removeDownloads WebExtension asks to sanitize downloads we will check to make sure a specific download conforms and can be deleted.
Comment on attachment 9012184 [details] Bug 1492404 - Remove all downloads when Fennec asked to sanitize them; r?sdaswani Jan Henning [:JanH] has approved the revision.
Attachment #9012184 - Flags: review+
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc16bc807209 Remove all downloads when Fennec asked to sanitize them; r=JanH
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Flags: qe-verify+
Verified as fixed on the latest build of Nightly 64.0a1 (2018-10-07) using both scenarios with Nokia 6 (Android 7.1.1), Samsung Galaxy S7 Edge (Android 8.0.0), Sony Xperia Z5 Premium (Android 6.0.1) and OnePlus 5T (Android 8.1.0).
Is that something we can consider for beta uplift?
Flags: needinfo?(petru.lingurar)
Flags: needinfo?(petru.lingurar)
Comment on attachment 9012184 [details] Bug 1492404 - Remove all downloads when Fennec asked to sanitize them; r?sdaswani [Beta/Release Uplift Approval Request] Feature/Bug causing the regression: None User impact if declined: Privacy issue: Partial downloads are kept after the app is closed even if the user chose for all downloads to be cleared from history. Is this code covered by automated tests?: No Has the fix been verified in Nightly?: Yes Needs manual test from QE?: No If yes, steps to reproduce: -- List of other uplifts needed: None Risk to taking this patch: Low Why is the change risky/not risky? (and alternatives if risky): Small change, verified by QA. String changes made/needed: --
Attachment #9012184 - Flags: approval-mozilla-beta?
Comment on attachment 9012184 [details] Bug 1492404 - Remove all downloads when Fennec asked to sanitize them; r?sdaswani Bug fix for fennec download history management, baked a week on nightly, uplift approved for 63 beta 13, thanks.
Attachment #9012184 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Tested with Motorola Nexus 6(Android 7.1.1), Nexus 9(Android 6.0.1), Sony Xperia Z5 (Android 7.0) and this issue is still reproducible on 63 beta 13. I've filed bug 1497502. However, on Sony Xperia Z5 Premium(Android 6.0.1) the issue is fixed on the latest Beta build. Keeping the qe-verify flag to check when the issue is fixed.
As we are close from the 63 release, wontfix for 62.
Verified in the latest Beta (63.0b15) following the steps provided in Comment 0. Nothing is kept in the downloads folder after quitting FF.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: