Closed
Bug 1107510
Opened 10 years ago
Closed 9 years ago
Files downloaded in private browsing are not cleared with Clear now option
Categories
(Firefox for Android Graveyard :: Download Manager, defect)
Tracking
(firefox34 affected, firefox35 affected, firefox36 affected, firefox37 affected, fennec+)
RESOLVED
DUPLICATE
of bug 1114506
People
(Reporter: CristinaM, Assigned: arcturus, Mentored)
References
Details
(Whiteboard: [lang=js][good first bug])
Environment: Device: Nexus 4 (Android 4.4.4) Build: Firefox for Android 37.0a1 (2014-12-04) Steps to reproduce: 1. Launch Fennec and switch to private browsing; 2. Go to 1.usa.gov/deeXKM; 3. Go to about:downloads and observe the downloaded file on a dark background; 4. Go to Settings -> Privacy-> Clear now -> all boxes checked -> Clear data; 5. Go to about: downloads. Actual results: Files downloaded in private browsing are not cleared. Expected results: All downloaded files are cleared. Download manager is empty. Notes: After browser restart, files downloaded in private browsing are not displayed anymore.
Comment 1•10 years ago
|
||
Can you find a regression-range if this is indeed a regression? There's no indication in this bug report.
Flags: needinfo?(cristina.madaras)
Can't tell how far back this is going, but Firefox 34 is affected and newer versions are affected. Anyway, this is happening only if you open about:downloads in private browsing. After you close all private tabs, and open again about:downloads in private browsing, the download manager is empty. I think it's actually the correct behavior, since saved data in private browsing is not preserved after you exit private browsing.
status-firefox34:
--- → affected
status-firefox35:
--- → affected
status-firefox36:
--- → affected
status-firefox37:
--- → affected
Reporter | ||
Comment 3•10 years ago
|
||
Not a regression, this is reproducible even on 2013 builds. Mihai is right, after all private tabs are closed, download manager doesn't display files downloaded in private browsing anymore. This is happening also when Firefox is restarted. But if you switch to normal browsing without closing the private tabs, in about:downloads will be displayed all downloaded files, in both normal and private browsing. While in normal browsing, clear private data via Settings -> Privacy-> Clear now -> all boxes checked -> Clear data, this should clear all downloaded files, no?
Flags: needinfo?(cristina.madaras)
Updated•10 years ago
|
tracking-fennec: --- → ?
Updated•10 years ago
|
Mentor: bnicholson, wjohnston
tracking-fennec: ? → +
Whiteboard: [lang=js][good first bug]
Assignee | ||
Comment 4•10 years ago
|
||
Hi would like to know if I could take this bug and receive support for fixing it.
Updated•10 years ago
|
Flags: needinfo?(bnicholson)
Comment 5•9 years ago
|
||
Hi Francisco. Sure, and thanks! Sorry for the delay -- many of us have been on vacation for the holidays :) The private data cleanup happens in Sanitizer.jsm at [1]. The downloads are removed from the list, then the files themselves are deleted at [2]. At first glance, nothing looks obviously wrong to me, so I'd suggest adding some logs to figure out if/why we're skipping private downloads here. Using dump() (which will write to logcat), I'd add a few logging lines to see if we're even iterating over private downloads in the first place, then go from there. The Download API is at [3], which could be useful for logging. Please don't hesitate to ask more questions if anything is unclear! [1] http://mxr.mozilla.org/mozilla-central/source/mobile/android/modules/Sanitizer.jsm?rev=d6fb576da01d#184 [2] http://mxr.mozilla.org/mozilla-central/source/mobile/android/modules/Sanitizer.jsm?rev=d6fb576da01d#205 [3] https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Downloads.jsm/Download
Assignee: nobody → francisco
Flags: needinfo?(bnicholson)
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 6•9 years ago
|
||
Uh, this bug might well have been fixed by the migration to the JavaScript API for downloads in bug 1114506. The "Downloads.getList(Downloads.ALL)" call includes both public and private downloads.
Depends on: 1114506
Comment 7•9 years ago
|
||
Hey, look at that! No wonder nothing looked wrong. Thanks, Paolo. Francisco, looks like there's nothing to do here, but thanks for your interest in contributing! Here's a list of other unassigned mentored JS bugs if you'd like to take something else: http://www.joshmatthews.net/bugsahoy/?mobileandroid=1&js=1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•