Closed Bug 1747929 Opened 3 years ago Closed 3 years ago

UrlbarSearchUtils.enginesForDomainPrefix() can include the same engine more than once when matchAllDomainLevels = true (partial matching)

Categories

(Firefox :: Address Bar, defect, P3)

defect
Points:
3

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- fixed

People

(Reporter: adw, Assigned: adw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

If UrlbarSearchUtils.enginesForDomainPrefix() is called with matchAllDomainLevels set, then a single engine can end up more than once in the list of returned matching engines.

I found this while working on bug 1744367.

  • Don't include partially matching engines that are already in the perfectly
    matching list
  • Add a test for this and the matchAllDomainLevels case in general since we
    don't have one AFAICT
  • The test file name ends in jsm, so change it to js

https://treeherder.mozilla.org/#/jobs?repo=try&revision=ca42b190bcdd2a856796ebb3639c3e8f44dcbcb3

I'll go ahead and mark this as a regression since before bug 1668939 this function would not have returned duplicate engines.

No longer blocks: 1668939
Keywords: regression
Regressed by: 1668939
Has Regression Range: --- → yes

Set release status flags based on info from the regressing bug 1668939

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6f8d0a814b2e Modify UrlbarSearchUtils.enginesForDomainPrefix() so it does not include the same engine more than once when matchAllDomainLevels = true. r=harry
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch

The patch landed in nightly and beta is affected.
:adw, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(adw)
Flags: qe-verify-
Flags: needinfo?(adw)
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: