Closed Bug 1690970 Opened 3 years ago Closed 3 years ago

Stop using Services.prefs.deleteBranch

Categories

(Thunderbird :: General, defect)

defect

Tracking

(thunderbird_esr78 wontfix, thunderbird86 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird86 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

Because bug 1505941 exists, we shouldn't be using deleteBranch now that we have content processes. Here's all the uses we have: https://searchfox.org/comm-central/search?q=deletebranch&path=&case=false&regexp=false

I've decided not to change the test files as the bug only affects prefs that are used across restarts.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/eff16c6d7e9f
Stop using Services.prefs.deleteBranch. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

Comment on attachment 9201331 [details]
Bug 1690970 - Stop using Services.prefs.deleteBranch. r?mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1505941 + tb-fission
User impact if declined: user accounts and calendars that get deleted become zombies and come back on restart
Testing completed (on c-c, etc.): just landed
Risk to taking this patch (and alternatives if risky): low

Attachment #9201331 - Flags: approval-comm-beta?

Comment on attachment 9201331 [details]
Bug 1690970 - Stop using Services.prefs.deleteBranch. r?mkmelin

Hold up, I broke something. :-/

Attachment #9201331 - Flags: approval-comm-beta?

Backed out:
https://hg.mozilla.org/comm-central/rev/34e5fc23e071432f5b3235fcc6940b5e9db4e1e1

The way I fixed this was clearing too many preferences. I was clearing all prefs with names that started with foo, but I should only clear foo itself and those that start with foo..

Apparently I'm too blind to notice the test failure in my Try run.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/883139ef4ac9
Stop using Services.prefs.deleteBranch. r=mkmelin

Comment on attachment 9201331 [details]
Bug 1690970 - Stop using Services.prefs.deleteBranch. r?mkmelin

Okay let's try that again.

[Approval Request Comment]
Regression caused by (bug #): bug 1505941 + tb-fission
User impact if declined: user accounts and calendars that get deleted become zombies and come back on restart
Testing completed (on c-c, etc.): landed yesterday
Risk to taking this patch (and alternatives if risky): low, but I said that last time ;-)

Attachment #9201331 - Flags: approval-comm-beta?

Comment on attachment 9201331 [details]
Bug 1690970 - Stop using Services.prefs.deleteBranch. r?mkmelin

[Triage Comment]
Approved for beta

Attachment #9201331 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: