Open Bug 2043607 Opened 5 months ago Updated 5 months ago

Use the engine id rather than engine name in the address bar code

Categories

(Firefox :: Address Bar, task, P3)

task

Tracking

()

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [sng])

Attachments

(2 external files)

The address bar code currently uses the search engine name when keeping track of search engines in results and payloads. We would like to change this to use the search engine identifier instead. This follows recent work on other areas, and also changes within the search service over the last few years to start preferring ids more than the name.

One reason is that the identifier is more stable, we do not need to worry about if the search engine is renamed. An additional reason is that the lookup for the identifier is a map index, rather than having to iterate over the entries of the map. Whilst this won't significantly improve performance in most cases, it would still be good to tidy up.

Renames UrlbarQueryContext.searchMode.engineName to searchMode.engineId and makes the appropraite changes.

Renaming a custom engine in settings (or via configuration updates) will no longer exit search mode.

Attachment #9591485 - Attachment description: WIP: Bug 2043607 - Use engine id instead of name for urlbar searchMode. r?#urlbar-reviewers! → Bug 2043607 - Use engine id instead of name for urlbar searchMode. r?#urlbar-reviewers!
Attachment #9591486 - Attachment description: WIP: Bug 2043607 - Use engine id in urlbar result payloads and DOM data attributes r?#urlbar-reviewers! → Bug 2043607 - Use engine id in urlbar result payloads and DOM data attributes r?#urlbar-reviewers!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: