Closed Bug 1614966 Opened 6 years ago Closed 6 years ago

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)

defect
Not set
normal

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
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.

https://searchfox.org/mozilla-central/rev/7e92a667e3829831c31e8d46aefe7ef67ad5be1c/toolkit/components/extensions/ExtensionXPCShellUtils.jsm#913

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.

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.

Depends on: 1582053

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.

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.

Assignee: nobody → mixedpuppy
Status: NEW → ASSIGNED
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc807514ff49 disable remote settings in webext xpcom r=Ehsan
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75

Adding dependency for visibility. The patch here didn't do anything until bug 1635227 added support for the prefs key in test manifests.

Depends on: 1635227
See Also: → 1723198
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: