Remove Preferences.sys.mjs usage from Sync
Categories
(Firefox :: Sync, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: lina, Assigned: marco, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [overhead:noted])
Attachments
(12 files, 2 obsolete files)
|
22.94 KB,
patch
|
Details | Diff | Splinter Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
Updated•7 years ago
|
Comment 5•7 years ago
|
||
| Reporter | ||
Comment 6•7 years ago
|
||
| Reporter | ||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Updated•7 years ago
|
| Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
| Reporter | ||
Comment 12•7 years ago
|
||
Updated•7 years ago
|
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
| Reporter | ||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
| Reporter | ||
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Comment 22•7 years ago
|
||
Comment 24•7 years ago
|
||
| Reporter | ||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
| Reporter | ||
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
Comment 29•7 years ago
|
||
Updated•5 years ago
|
Comment 31•4 years ago
|
||
I think it could make sense to completely remove Weave.Svc and replace it with straight Service.
Mark, could someone in the Services Team be the new mentor for this bug?
Comment 32•4 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #31)
I think it could make sense to completely remove Weave.Svc and replace it with straight Service.
This is a huge mess. There already is a Weave.Service, different from Weave.Svc - and you might think/hope that would at least be setup in Weave.js, but no, that would be too easy - they are setup here - so Weave.Svc is a wrapper around the observer service and Preferences.jsm - so once this bug is resolved, there would be no more references to Weave.Svc.Prefs, so then it would certainly make sense to kill Weave.Svc entirely and use Services.obs for the remaining references.
Regardless, I'll take over the mentoring from Lina, even though I suspect it might end up being too large for a new contributor, as we can see above.
Comment 33•3 years ago
|
||
The following patch is waiting for review from an inactive reviewer:
| ID | Title | Author | Reviewer Status |
|---|---|---|---|
| D11350 | Bug - 1406475 Remove Preferences.jsm usage from Sync | arshadkazmi42 | lina: Inactive |
:arshadkazmi42, could you please find another reviewer or abandon the patch if it is no longer relevant?
For more information, please visit auto_nag documentation.
Comment 34•3 years ago
•
|
||
Hi.
As per the last comment by lina, this patch was depended on another bug.
I don't have much context on that. Also, I didn't had complete context on the exact issue, as the work was in progress that time and during the review process lina find the depenedency on a different bug.
I am not sure about anyone else, who can help here. I guess we can abandon the patch, and let someone else take a look before doing any more work on this.
I think :markh can add more details on this
Updated•3 years ago
|
Comment 35•3 years ago
|
||
Sorry for leaving this hanging, but I'm not quite sure how this patch works. Svc.Prefs is setup here - but the attached patch doesn't seem to update that. So it looks like the patch is still leaving sync using Preferences.jsm so I don't expect references to, eg, Svc.Prefs..getStringPref() to work as Preferences.jsm doesn't define those methods.
I also don't see much effort towards bug 1385954 and see new code continue to use it. So TBH, I only see value in pushing this forward is that bug is going to go somewhere. I'll ask in that bug to try and work out what the appetite is for that.
Updated•3 years ago
|
| Assignee | ||
Comment 37•2 years ago
|
||
| Assignee | ||
Comment 38•2 years ago
|
||
We can simply iterate through all prefs using getChildList and remove them one by one, so this doesn't have to depend on bug 720419.
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 39•2 years ago
|
||
This makes it easier to convert sync to Services.prefs from Preferences.jsm incrementally.
| Assignee | ||
Comment 40•2 years ago
|
||
Depends on D180801
| Assignee | ||
Comment 41•2 years ago
|
||
Depends on D180802
| Assignee | ||
Comment 42•2 years ago
|
||
Depends on D180803
| Assignee | ||
Comment 43•2 years ago
|
||
Depends on D180804
| Assignee | ||
Comment 44•2 years ago
|
||
Depends on D180805
| Assignee | ||
Comment 45•2 years ago
|
||
Depends on D180806
| Assignee | ||
Comment 46•2 years ago
|
||
Depends on D180807
| Assignee | ||
Comment 47•2 years ago
|
||
Depends on D180808
| Assignee | ||
Comment 48•2 years ago
|
||
Depends on D180809
| Assignee | ||
Comment 49•2 years ago
|
||
Depends on D180810
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 50•2 years ago
|
||
Comment 51•2 years ago
|
||
| bugherder | ||
Comment 52•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
Comment 53•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e30f1f8da420
https://hg.mozilla.org/mozilla-central/rev/71b3a148cf7d
https://hg.mozilla.org/mozilla-central/rev/89241805ba61
https://hg.mozilla.org/mozilla-central/rev/d1bd2cc70ae3
https://hg.mozilla.org/mozilla-central/rev/662799769363
https://hg.mozilla.org/mozilla-central/rev/d9edfe8c007e
https://hg.mozilla.org/mozilla-central/rev/f3ec770d7511
Description
•