ExtensionXPCShellUtils.jsm overriding of services.settings.default_bucket makes it hard to use remote settings in tests that use add-on manager
Categories
(WebExtensions :: General, defect)
Tracking
(firefox75 fixed)
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: standard8, Assigned: mixedpuppy)
References
Details
Attachments
(1 file)
ExtensionXPCShellUtils currently overrides services.settings.default_bucket
to make it not work for some url formatter tests. This breaks remote settings and makes it hard for remote settings to be used in other places, for example the search service.
I think preferably it should only be overridden for the tests that really need it, or it should be handled a different way.
In bug 1612416 we are adding a bunch of resets for the preference so that remote settings will work properly for the search service.
Comment 1•6 years ago
|
||
We could move that part into our head.js files and remove them from ExtensionXPCShellUtils.jsm so that other tests can use ExtensionTestUtils without getting that pref always set.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
It seems like the failures that those settings fixed were limited to toolkit/components/extensions/test/xpcshell, so the change can just apply to those initially.
Assignee | ||
Comment 4•6 years ago
|
||
Move a prior fix from bug 1582053 into the test ini files. This allows other tests that use the test utils to also rely on remote settings working properly.
Updated•6 years ago
|
Comment 6•6 years ago
|
||
bugherder |
Comment 7•5 years ago
|
||
Adding dependency for visibility. The patch here didn't do anything until bug 1635227 added support for the prefs
key in test manifests.
Description
•