gecko-dev/toolkit
i.milind.luthra+590334 d3ba94cc11 Bug 1249263 - add a `removeByFilter` method to filter by host and time,r=mak
Added a method in History to filter by host and timeframe, which is designed
to act as a replacement for `RemovePagesByTimeFrame` and `RemovePagesFromHost`
in the old API. The `filter` object accepts both a host argument, as well as
a timeframe, and filters as per one or both of them.
This also moves certain code (the method `validatePageInfo` and methods it
uses) from History to PlacesUtils such that we can use it for testing as well,
and modifies the method to take another parameter which decides whether
the visits inside the pageInfo need to be validated as well (since the pageInfo
returned from History.jsm::`remove` and History.jsm::`removeByFilter` do not pass
a visits array in their callback functions.

Shifts `ensureDate` and `isValidTransitionType`(now renamed to `isValidTransition`)
inside the history object.

MozReview-Commit-ID: EQAHmjf7131

--HG--
extra : rebase_source : d5992a1bd3c297c84dd0ecbf47111e8f914a58a0
2017-05-11 17:22:27 +02:00
..
components Bug 1249263 - add a `removeByFilter` method to filter by host and time,r=mak 2017-05-11 17:22:27 +02:00
content Bug 1363700 - Add RCWN stats to about:networking r=bz,michal 2017-05-10 19:23:54 +02:00
crashreporter merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
forgetaboutsite Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
library No bug - Revendor rust dependencies 2017-05-09 03:47:56 +00:00
locales Bug 1363700 - Add RCWN stats to about:networking r=bz,michal 2017-05-10 19:23:54 +02:00
modules Merge m-c to autoland, a=merge 2017-05-08 16:24:51 -07:00
mozapps Backed out changeset 18f88f090a65 (bug 1358363) for failures in browser_panelUINotifications.js 2017-05-10 19:27:59 -07:00
pluginproblem
profile Bug 1347358 - Add a Cleanup() function for profile locks. r=glandium 2017-03-23 18:02:10 +01:00
system Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop 2017-04-09 05:43:43 -04:00
themes merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
xre merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
.eslintrc.js Bug 1358949 - Lower eslint cyclomatic complexity threshold in some directories. r=standard8 2017-04-23 19:23:18 -07:00
moz.build
moz.configure Bug 1363666: followup - Remove outdated comment. r=me 2017-05-11 15:29:38 +02:00
nss.configure
toolkit.mozbuild Back out bug 1357107 since it broke a feature that we have no automated tests for... 2017-05-05 22:41:36 -04:00