mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
6245c3b363
The tracker base class currently does two things: bump the score in response to observer notifications, and store a list of changed IDs. The bookmarks, form autofill, and now bridged trackers need to hack around this to opt out of persistence, since they handle change tracking in the storage layer. This commit keeps the score logic in `Tracker`, but moves all the persistence code into an intermediate `LegacyTracker` class, and changes all engines that need persistence to inherit from it. `ignoreAll` is more interesting. We want new-style stores to emit observer notifications with change sources, so that the tracker knows to ignore changes made by Sync. Ignoring all observer notifications during a sync is a blunter version of this. But, not every new store supports change sources, so we reimplement `ignoreAll` manually for ones that don't. Differential Revision: https://phabricator.services.mozilla.com/D74374 |
||
---|---|---|
.. | ||
addons.js | ||
bookmarks.js | ||
clients.js | ||
extension-storage.js | ||
forms.js | ||
history.js | ||
passwords.js | ||
prefs.js | ||
tabs.js |