Closed Bug 1469525 Opened 6 years ago Closed 6 years ago

Remove local JSON files created by blocklist clients

Categories

(Toolkit :: Blocklist Implementation, enhancement)

61 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: leplatrem, Assigned: leplatrem)

References

Details

Attachments

(1 file)

When we were working on Bug 1257565, since we had no idea how to switch the blocklist service to async, our first approach was to generate JSON files on disk and load them the same way as the current XML file. Since then, Gijs has accomplished a ton of work to switch the blocklist service methods to async, and demostrated that using the RemoteSettings API directly was a relevant approach. We can now get rid of those JSON files, they are and will remain completely useless.
Assignee: nobody → mathieu
Don't we use the JSON dumps to do the initial creation of the database for new profiles?
Flags: needinfo?(mathieu)
The JSON dumps we use for the initial creation of the database are packaged in the release in `services/settings/dumps` and loaded from resource:// The JSON files in the profile were the result of some «work-in-progress» for Bug 1257565. Our initial plan was to write those files on disk after server synchronization, send a reload-from-disk message and read them synchronously in the blocklist service. The two first steps were landed in Bug 1257556 if I recall correctly. The third never happened as you can in the pending patches in Bug 1257565 Anyway, since we now know that we can use the `async RemoteSettings().get()` in the blocklist service, these JSON files can be cleaned from profiles. Also we now have `RemoteSettings("..").on("sync", {})` therefore we don't need to emit a message to wake up the blocklist service.
Flags: needinfo?(mathieu)
Attachment #8986140 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by mleplatre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ace07e18cb34 Remove blocklist clients files from profile r=Gijs
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: Blocklist Policy Requests → Blocklist Implementation
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: