Closed Bug 1871054 Opened 2 years ago Closed 1 year ago

Trending suggestions pref causes web search suggestions to be displayed for one letter inputs

Categories

(Firefox :: Address Bar, defect, P3)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox122 --- wontfix
firefox123 --- wontfix
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: cbaica, Assigned: daleharvey)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng][search-regression])

Attachments

(3 files)

Found in

  • Fx 122.0b1

Affected versions

  • Fx 122.0b1
  • Fx 123.0a1

Affected platforms

  • Windows 10
  • Ubuntu 20.04
  • macOS

Steps to reproduce

  1. Launch Firefox.
  2. Open a new tab and type 'z'.

Expected result

  • NO web search suggestions are displayed for one letter input.

Actual result

  • Web search suggestions are displayed for one letter input, which is only specific for trending suggestions feature, even though no trending suggestions are actually displayed.

Regression range

  • Not a regression. Has been like this since the implementation of trending suggestions.

Additional notes

  • Please note that this affects the balance of results shown (websearch suggestions vs firefox suggest). With trending enabled the firefox suggest results are drastically reduced (only 3 shown).
  • With browser.urlbar.trending.featureGate disabled, there are no web search suggestions for 1 letter input.
Summary: Trending suggestions pref returns regular web search suggestions for one letter inputs → Trending suggestions pref causes web search suggestions to be displayed for one letter inputs

:cbaica, if you think that's a regression, could you try to find a regression range using for example mozregression?

We should fix this before shipping trending suggestions, as it is unintentionally different behaviour.

Blocks: 1824965
Priority: -- → P3
Whiteboard: [sng][search-regression]
Assignee: nobody → dharvey

I cant seem to be able to reproduce this, if I type one letter in the urlbar I get suggestions regardless of whether I type 1 letter or 3 and regardless of whether browser.urlbar.trending.featureGate is true or false

It seems like https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarUtils.sys.mjs#2255 could have caused this bug, but yeh not seeing 1 letter search suggestions being prevented regardless

Flags: needinfo?(cbaica)

Found it cheers

Flags: needinfo?(cbaica)
Pushed by dharvey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6da1eae794ef Dont show suggestions for single character query. r=daisuke
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Attachment #9408137 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Minor UX regression
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: Type one character in urlbar and observe if suggestions are fetched
  • Risk associated with taking this patch: Minimal
  • Explanation of risk level: Small fix to non complicated code path
  • String changes made/needed: No
  • Is Android affected?: no
Flags: in-testsuite+
Attachment #9408137 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: