Closed Bug 2024714 Opened 1 month ago Closed 1 month ago

If there are duplicate keywords for search engines, prefer the default search engine

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox150 --- fixed
firefox151 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Depends on 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(4 files)

Although we generally try to prevent it, there are some cases where a search engine could be added with a keyword that's a duplicate of one of the application provided engines.

Currently, it depends on the visual order of search engines as to which one is used. We should make this more consistent, by using the search engine according to the following (in order):

  • Use whichever is the default search engine, or
  • Use whichever is application provided, or
  • Use the first search engine in the sorted visible order.
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Attachment #9557757 - Attachment description: Bug 2024714 - When handling duplicate keywords, use a predicatable order. r?#urlbar-reviewers! → Bug 2024714 - When handling duplicate keywords, use a predictable order. r?#urlbar-reviewers!
Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/57974752dd76 https://hg.mozilla.org/integration/autoland/rev/c7e6beeda02f Change browser_tokenAlias test to use configuration based engines rather than manually added engines. r=urlbar-reviewers,jteow https://github.com/mozilla-firefox/firefox/commit/03d7a6bb9b0b https://hg.mozilla.org/integration/autoland/rev/e7cf9d0f4c39 When handling duplicate keywords, use a predictable order. r=urlbar-reviewers,jteow
Attachment #9562632 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: In 150 we are planning on some changes which may introduce scenarios with duplicate keywords. We want to ensure they are correctly handled, for consistency from the user's perspective and for correct attributions.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Test the scenarios from comment 0 on the bug where there's an add-on installed with a keyword that's a duplicate of an application provided engine.

The search engineering team can help set up the config.

  • Risk associated with taking this patch: low
  • Explanation of risk level: Small concentrated change to how keywords are processed, in well tested code.
  • String changes made/needed?: None
  • Is Android affected?: no
Attachment #9562633 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Attachment #9562632 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9562633 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [search] [qa-triage-done-c151/b150][qa-ver-needed-c151/b150]
QA Contact: cbaica
QA Whiteboard: [search] [qa-triage-done-c151/b150][qa-ver-needed-c151/b150] → [search] [qa-triage-done-c151/b150][qa-ver-needed-c151/b150][uplift]

Hey Mandy, could you help us with the config setup in order to test this? Also, any pointers are highly appreciated.

Flags: needinfo?(mcheang)

Gave details on Slack - we have an example on staging that can be used with an add-on to verify.

Flags: needinfo?(mcheang)

(In reply to Mark Banner (:standard8) from comment #10)

Gave details on Slack - we have an example on staging that can be used with an add-on to verify.

Initial testing completed, I gave details on slack related concerns related to this fix, will further update this issue as soon as discussion there concludes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: