Closed Bug 1976703 Opened 7 months ago Closed 5 months ago

Replace UITour references to `nsISearchEngine.identifier` with `id`

Categories

(Firefox :: Tours, task)

task

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox144 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In bug 1877721, we'd like to remove nsISearchEngine.identifier as it is ambiguous with what it is, and overlaps with id and telemetryId.

The UITour code currently uses it in two places:

  • getConfiguration.
    • The sendPageCallback is called with an object, containing a searchEngineIdentifier and a list of engines.
      • searchEngineIdentifier can be replaced by a check for application (config) engine & returning id if it is, or null, if not.
      • The engines list should be filtered by application (config) engine and then also use id instead of identifier. Note that the filtering for visible engines should be kept.
  • setDefaultSearchEngine should use the newer nsISearchEngine.getEngineById function rather than handling its own lookup.

As far as we can tell, the Bedrock website code doesn't use these currently (getConfiguration, setDefaultSearchEngine), hence we should be fine to update these.

Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/77f1160f6eed https://hg.mozilla.org/integration/autoland/rev/d8d0bc4713c3 Change UITour to use the search engine id rather than an id which includes a telemetry suffix. r=omc-reviewers,pdahiya
Regressions: 1987631
No longer regressions: 1987631
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-triage-done-c145/b144]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: