Permissions manager tests (extensions/permissions/test/unit) failing in Thunderbird
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: mkmelin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
The changes to tests in https://hg.mozilla.org/mozilla-central/rev/1d7b14496648653222e010e2568cf24d6051cc11 has caused them all to fail in Thunderbird. They're failing because the built-in permission from mail/app/permissions exists when the test checks that no permissions exist. For some reason in Thunderbird the permissions manager is initialised very early on, whereas I suspect it is not in Firefox. (I'm trying to prove this now, but waiting for a build.)
| Reporter | ||
Comment 1•6 years ago
|
||
Hmm, no. Firefox calls PermissionManager::Init at least as early as Thunderbird does. I have run out of ideas at this point.
| Assignee | ||
Comment 3•6 years ago
|
||
Firefox tests sadly do not run with the Firefox profile, while Thunderbird does (bug 1168178).
I suspect the problem is that permissions.manager.defaultsUrl "" is not working in the new setup, but would have to check exactly why.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
After bug 1363541 the calls to Services.prefs.setCharPref("permissions.manager.defaultsUrl", ""); must be done early to have any effect. Otherwise the defaults will already be imported and tests do not get the expected starting point.
| Comment hidden (Intermittent Failures Robot) |
Comment 8•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 9•6 years ago
|
||
Started failing following https://hg.mozilla.org/mozilla-central/rev/f1d9689ea300
| Comment hidden (Intermittent Failures Robot) |
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
Description
•