Remove nsIDownloadHistory::removeAllDownloads

RESOLVED FIXED in Firefox 63

Status

()

enhancement
P1
normal
RESOLVED FIXED
11 months ago
11 months ago

People

(Reporter: standard8, Assigned: standard8)

Tracking

(Blocks 1 bug)

unspecified
mozilla63
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox63 fixed)

Details

(Whiteboard: [fxsearch])

Attachments

(2 attachments)

We no longer need nsIDownloadHistory::removeAllDownloads, we can replace it with PlacesUtils.history.removeVisitsByFilter if we add an additional filter type to filter by transition.

Part of the work towards bug 1468980 - removing nsIDownloadHistory completely.
I started removing removeAllDownloads from the c++ code, and then discovered I could remove a lot more. Including some parts of the batching system, hence adding blocking for bug 897954 as well.
Blocks: 897954
Also change PlacesUtils.history.removeVisitsByFilter to be able to remove by transition type.

MozReview-Commit-ID: Bkiv0ScUi07
Comment on attachment 8991106 [details]
Bug 1474638 - Change users of nsIDownloadHistory::removeAllDownloads() to PlacesUtils.history.removeVisitsByFilter.

Marco Bonardo [::mak] has approved the revision.

https://phabricator.services.mozilla.com/D2056
Attachment #8991106 - Flags: review+
Comment on attachment 8991107 [details]
Bug 1474638 - Remove nsIDownloadHistory::removeAllDownloads.

Marco Bonardo [::mak] has approved the revision.

https://phabricator.services.mozilla.com/D2057
Attachment #8991107 - Flags: review+

Comment 7

11 months ago
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/43dc237c33f3
Change users of nsIDownloadHistory::removeAllDownloads() to PlacesUtils.history.removeVisitsByFilter. r=mak

Comment 8

11 months ago
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4e729ca38f8c
Remove nsIDownloadHistory::removeAllDownloads. r=mak

Comment 9

11 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/43dc237c33f3
https://hg.mozilla.org/mozilla-central/rev/4e729ca38f8c
Status: NEW → RESOLVED
Last Resolved: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.