Firefox/Kinto: Difference between revisions

add transition info
(Add details about implementation)
(add transition info)
Line 73: Line 73:


See https://bugzilla.mozilla.org/show_bug.cgi?id=1197707
See https://bugzilla.mozilla.org/show_bug.cgi?id=1197707
=== Transition ===
Currently the blocklist system relies on a big XML file that is downloaded every day. It contains block entries for certificates to be revoked, addons and plugins to be disabled, and gfx environments that cause problems or crashes. Everything is managed via the Addons server.
Firefox (and derivatives like Thunderbird, Seamonkey, ...) downloads it on an URL that contains client information (eg. https://blocklist.addons.mozilla.org/blocklist/3/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/44.0a1/)
Using the same XPCOM notification callback, the new mechanism will [https://dxr.mozilla.org/mozilla-central/rev/fc15477ce628599519cb0055f52cc195d640dc94/toolkit/mozapps/extensions/nsBlocklistService.js#632-642 synchronize the local copy of each collection from the remote server].
If changes are available, the [https://dxr.mozilla.org/mozilla-central/rev/fc15477ce628599519cb0055f52cc195d640dc94/services/common/KintoBlocklist.js#78-105 local copy will be updated] and [https://bugzilla.mozilla.org/show_bug.cgi?id=1263602 content signature verified].
* In '''phase 1''', it will be a no-op. Both mechanisms will run in parallel but only the legacy one will be used. We'll keep both mainly because the current download of the XML is used to count active daily users. Once we are ok with the statistics, we'll go to phase 2.
* In '''phase 2''', we'll change the source of truth of block entries on the server side. The data from the Addons server won't be used anymore. That means the [https://github.com/mozilla-services/kinto-amo/ server will produce the same XML file] but using the data stored in the new service.
* In '''phase 3''', the [https://bugzilla.mozilla.org/show_bug.cgi?id=1257565 blocking mechanism will rely on the data managed via JSON], and the old XML client will be decommissioned.


== Fennec assets catalog ==
== Fennec assets catalog ==
24

edits