Closed Bug 775042 Opened 12 years ago Closed 12 years ago

Download history is not cleared when clearing private data

Categories

(Firefox for Android Graveyard :: General, defect)

17 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox15+ verified, firefox16 verified, firefox17 verified, fennec15+)

VERIFIED FIXED
Firefox 17
Tracking Status
firefox15 + verified
firefox16 --- verified
firefox17 --- verified
fennec 15+ ---

People

(Reporter: AdrianT, Assigned: bnicholson)

References

Details

Attachments

(1 file)

Nightly 17.0a1 2012-07-17/ Firefox Mobile 15.0b1
Device: HTC Desire (Android 2.2)/Samsung Galaxy S2 (Android 2.3.4)

Steps to reproduce:
1. Go to 1.usa.gov/deeXKM.
2. Wait for the pdf to finish download.
3. Return to Firefox Mobile and clear private data. Make sure "Browsing&Download History" is selected.
4. Open the Download Manager.

Expected results:
The download history is cleared.

Actual results:
All downloads are still displayed in the Download Manager.
tracking-fennec: --- → ?
Assignee: nobody → bnicholson
Version: Firefox 16 → Firefox 17
tracking-fennec: ? → 15+
This one is simple enough.
Attachment #643641 - Flags: review?(mark.finkle)
Comment on attachment 643641 [details] [diff] [review]
Clear downloads when clearing history

This could get confusing if we continue to create the special groups. We might want to create special names too and handle all sub items in an if check. Like this:

switch (key) {
  case "history+downloads":
    sanitizer.clearItem("history");
    sanitizer.clearItem("downloads");
    break;
  default:
    sanitizer.clearItem(key);
}

Thoughts? I'd be ok with landing this fix as is on 16 and 15, and looking for something more robust in 17.
Attachment #643641 - Flags: review?(mark.finkle) → review+
Flags: in-moztrap?(adrian.tamas)
Test case is included in the Firefox Mobile: Privacy & Content Managing test suit. Test case link:
https://moztrap.mozilla.org/manage/cases/?filter-id=798#caseversion-id-1403
Flags: in-moztrap?(adrian.tamas) → in-moztrap+
Comment on attachment 643641 [details] [diff] [review]
Clear downloads when clearing history

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 754335
User impact if declined: download history cannot be cleared
Testing completed (on m-c, etc.): just landed m-i
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: none
Attachment #643641 - Flags: approval-mozilla-beta?
Attachment #643641 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/085db75952bb
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Attachment #643641 - Flags: approval-mozilla-beta?
Attachment #643641 - Flags: approval-mozilla-beta+
Attachment #643641 - Flags: approval-mozilla-aurora?
Attachment #643641 - Flags: approval-mozilla-aurora+
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: