Open Bug 2066871 Opened 5 days ago Updated 9 hours ago

use SpecialPowers.pushPrefEnv instead of Services.prefs for remaining mochitests

Categories

(Thunderbird :: General, defect)

defect
Points:
5

Tracking

(Not tracked)

ASSIGNED
157 Branch

People

(Reporter: tobyp, Assigned: tobyp)

References

(Blocks 1 open bug)

Details

(Keywords: checkin-needed-tb)

Attachments

(14 files)

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
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

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: nobody → toby
Status: NEW → ASSIGNED
Keywords: leave-open
Target Milestone: --- → 157 Branch

Pushed by toby@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/11bf9f2f231b
Use SpecialPowers.pushPrefEnv in calendar browser tests. r=aleca

Pushed by toby@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/92d8cd2b3e16
Use SpecialPowers.pushPrefEnv in mail base browser tests. r=aleca
https://hg.mozilla.org/comm-central/rev/9aa35bf602b7
Use SpecialPowers.pushPrefEnv in additional mail base browser tests. r=aleca
https://hg.mozilla.org/comm-central/rev/48b0c2ee729a
Use SpecialPowers.pushPrefEnv in preferences and address book browser tests. r=aleca

Blocks: 2067577
Attachment #9632488 - Attachment description: WIP: Bug 2066871 - Use SpecialPowers.pushPrefEnv in OpenPGP and S/MIME browser tests. r=#thunderbird-reviewers → Bug 2066871 - Use SpecialPowers.pushPrefEnv in OpenPGP and S/MIME browser tests. r=#thunderbird-reviewers

Pushed by toby@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/6f6518854e73
Use SpecialPowers.pushPrefEnv in mail component browser tests. r=aleca
https://hg.mozilla.org/comm-central/rev/83c7ce650c47
Use SpecialPowers.pushPrefEnv in WebExtension compose and message-list browser tests. r=aleca
https://hg.mozilla.org/comm-central/rev/351d030fce6b
Use SpecialPowers.pushPrefEnv in account and attachment browser tests. r=aleca
https://hg.mozilla.org/comm-central/rev/c14b35c4e85c
Use SpecialPowers.pushPrefEnv in composition browser tests. r=aleca

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/f56d7174d75d
Use SpecialPowers.pushPrefEnv in folder display browser tests. r=aleca
https://hg.mozilla.org/comm-central/rev/05e9f90fdeb0
Use SpecialPowers.pushPrefEnv in misc mail browser tests. r=mkmelin

Keywords: leave-open

That's it actually. I very much hope!!

Pushed by edicharry@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/f6e230b05d5f
Use SpecialPowers.pushPrefEnv in remaining WebExtension browser tests. r=mkmelin
https://hg.mozilla.org/comm-central/rev/5c0e6a855180
Use SpecialPowers.pushPrefEnv in CloudFile, message reader, and notification browser tests. r=mkmelin
https://hg.mozilla.org/comm-central/rev/2453aa3f68e3
Use SpecialPowers.pushPrefEnv in OpenPGP and S/MIME browser tests. r=mkmelin

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: