Remove usage of Preferences.jsm from PushService and PushServiceWebsocket
Categories
(Firefox :: General, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: marco, Assigned: emmamalysz)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [photon] [fxperf:p2] [overhead:noted])
Attachments
(1 file)
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Just documenting some discussion from elsewhere…
ActivityStreamPrefs does extend Preferences.jsm class mainly using .get()
and .set()
methods and ._prefBranch
getter to expose .observeBranch()
and .ignoreBranch()
helpers similar to Preferences.jsm's .observe()
but for all prefs instead of a single pref.
ActivityStream.jsm specifies a prefs object that contains various pref types, so the dynamic int vs string vs bool pref behavior is desired. But potentially this code could be removed in favor of using plain firefox.js prefs in the common case (while still specially changing behavior based on browser.search.region
).
Overall, because this is quite a bit more work than simply inlining Preferences.get()
-> Services.prefs.getStringPref()
, the ActivityStreamPrefs changes probably want to be split out to a separate bug.
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Description
•