use SpecialPowers.pushPrefEnv instead of Services.prefs for some mochitests
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: tobyp)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Per bug 1977567 comment 6:
"In general, in browser tests and mochitests you should use SpecialPowers.pushPrefEnv instead of using Services.prefs API, because the test-only SpecialPowers.pushPrefEnv API automatically cleans up preferences at the end of the test, even if you forget (or intentionally omit) the countering SpecialPowers.popPrefEnv call"
| Assignee | ||
Updated•6 days ago
|
| Assignee | ||
Comment 1•6 days ago
|
||
| Assignee | ||
Updated•6 days ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/3c841d450ab2
Use SpecialPowers.pushPrefEnv in mochitests. r=arschmitz
| Reporter | ||
Comment 3•6 days ago
|
||
It seems there's a whole lot more of these left: https://searchfox.org/comm-central/search?q=Services.prefs.set&path=browser_&case=false®exp=false - both mail and calendar
| Assignee | ||
Comment 4•5 days ago
|
||
wow, ok thanks
| Assignee | ||
Comment 5•5 days ago
|
||
| Assignee | ||
Comment 6•5 days ago
|
||
Sorry, this is going to span target milestones but is only test changes. Hope that's ok
| Assignee | ||
Comment 7•5 days ago
|
||
No it's not. Making another bug
Comment 8•5 days ago
|
||
Comment on attachment 9631162 [details]
Bug 1982429 - Use SpecialPowers.pushPrefEnv in calendar browser tests. r=#thunderbird-reviewers
Revision D321569 was moved to bug 2066871. Setting attachment 9631162 [details] to obsolete.
Description
•