Closed Bug 1907588 Opened 2 months ago Closed 2 months ago

Clean up add-on manager integration in search service related tests

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(3 files)

Now that bug 1906875 is done (well, almost landed), we have a lot of tests that can be cleaned up because we no longer need to initialise the add-on manager every time the search service starts - we only need it when a tests simulates a third party search engine WebExtension.

Hence we can do a lot of clean-up to avoid the calls to initialise it, and build the set-up that we do need into SearchTestUtils to automatically happen when we need it. This should avoid quite a bit of boiler-plate code.

We no longer need to start the add-on manager before the search service starts, so init it only when it is needed for installing add-ons.

Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ef56d77fe65f
Remove now unused SearchTestUtils.installSystemSearchExtension. r=search-reviewers,jteow
https://hg.mozilla.org/integration/autoland/rev/72a88ea1cb75
Change SearchTestUtils to be a class. r=search-reviewers,jteow
https://hg.mozilla.org/integration/autoland/rev/2e01f7bbae0b
In tests, only startup the Addon Manager when necessary, now that the search service doesn't require it all the time. r=search-reviewers,home-newtab-reviewers,jteow
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: