Closed Bug 1809638 Opened 1 year ago Closed 1 year ago

Save the extension id in AddonSearchEngine's constructor rather than passing it to the init/update functions

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

For AddonSearchEngines we are passing the extension id to #initWithManifest and also updateFromManifest.

This is unnecessary, as we can save it in the constructor and use it appropriately.

Additionally, it will protect against inadvertently changing the extension id when upgrading the search engine.

This save passing around the id in the update and init functions.

Depends on D166528

Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d55613298e72
Save the extension id in AddonSearchEngine's constructor rather than in init(). r=search-reviewers,mcheang

Backed out for causing failures on test_TelemetryEnvironment_search.js

Backout link

Push with failures

Failure log

Flags: needinfo?(standard8)

Test fixed.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1e026b8dc0ec
Save the extension id in AddonSearchEngine's constructor rather than in init(). r=search-reviewers,mcheang
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: