Add background task utilities for locking and reading prefs and other data from particular profiles
Categories
(Toolkit :: Background Tasks, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: nalexander, Assigned: nalexander)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
The --backgroundtask ...
machinery of Bug 1667276 always runs in a temporary profile (created and destroyed per task invocation). Some configuration for tasks can be moved to per-installation prefs (see Bug 1691486 and friends) but some tasks want to read data of various shapes from other profiles (most notably, the default profile). This ticket tracks adding some utilities for these use cases.
Assignee | ||
Comment 1•4 years ago
|
||
:Mossop sketched some of this work over in https://phabricator.services.mozilla.com/D95060. We want to lock and unlock foreign profiles, fetch data files from them (e.g., the datareporting state for the client ID), and parse prefs.
Assignee | ||
Comment 2•4 years ago
|
||
NI to me to explain what the existing WIP I have is, and what the APIs that I'd like for this, so that somebody else can pick it up.
Assignee | ||
Comment 3•4 years ago
|
||
This provides a simple API for parsing prefs from given bytes. It's
important to not encode bytes as strings, since libpref
is the
source of truth handling character encodings. In particular, prefs
files are not necessarily UTF-8.
This API allows to read prefs.js
from another profile directory, for
example.
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D107710
Assignee | ||
Comment 5•4 years ago
|
||
This will be used from the backgroundupdate
task to fish the default
profile's Telemetry client ID in order to correlate the task's Glean
ping with regular main pings.
Depends on D107711
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Clearing NI since this is almost ready to land.
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8807a843f18c
https://hg.mozilla.org/mozilla-central/rev/4c171818b968
https://hg.mozilla.org/mozilla-central/rev/17fbd43adba9
https://hg.mozilla.org/mozilla-central/rev/416721045363
Updated•3 years ago
|
Description
•