bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

DLC Sync: Hook into /changes call platform does




Firefox for Android
2 years ago
2 years ago


(Reporter: sebastian, Unassigned)


(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)




2 years ago
There's a /changes API that lists all collections and the last time they have been updated. For example here:

The sync client on JS side already polls this API to only run sync code for blocklists etc. if there has been changes. With that we can reduce the number of individual collection polls.

On Fennec side we are running the DLC client in Java. It would be nice to trigger our client whenever the platform sync client has seen changes for our collection.

Comment 1

2 years ago
@Mark: Can you point me to some code about how to add a client for a specific collection? I'll then add code to ping my java client.

I found this here but there are no clients yet and I would need to add one for mobile only:
Flags: needinfo?(mgoodwin)


2 years ago
Blocks: 1201059, 1257492
Currently, you simply create an object with a maybeSync function (e.g. see https://dxr.mozilla.org/mozilla-central/source/services/common/KintoCertificateBlocklist.js#49) and add it to the kinto clients in kintup-updater.js (see https://dxr.mozilla.org/mozilla-central/source/services/common/kinto-updater.js#78)

There's a slight change being made in bug 1257556 - there's a slight change made to the way clients are added (see the changes to services/common/kinto-updater.js). You can either create your own file as before, or perhaps add an item to KintoBlocklist.js 

I'm not sure how best to handle the fact that we won't want the same list of clients in fennec - maybe Mathieu has thoughts on this.
Flags: needinfo?(mgoodwin)
You need to log in before you can comment on or make changes to this bug.