Closed Bug 1999634 Opened 2 months ago Closed 2 months ago

Very often, when I type something to search, a wrong page to the latest autocompleted website from my history opens instead

Categories

(Firefox for Android :: Toolbar, defect)

All
Android
defect

Tracking

()

VERIFIED FIXED
147 Branch
Tracking Status
firefox146 + verified
firefox147 + verified

People

(Reporter: julienw, Assigned: petru)

References

Details

(Keywords: regression)

Attachments

(5 files)

Steps to reproduce

  1. Make sure you have some webpages in your history.
  2. In the address bar, try to search something, but make sure the first few letters will trigger an autocomplete at some point.
  3. After typing the full search string, press enter

=> Notice that the page to the latest autocompleted page opens, instead of my search

For example at step 1, type https://www.parc-livradois-forez.org/
at step 2, type "parc "
Notice that before the final space, the previous website is completed, but if you type the space it disappears. Still pressing enter will visit it.

I can wait anytime after pressing the space, it will still go to the website.

However if I wait a bit, then press any other character after that, then this will go to search instead.
Also if I press more character than just "parc ", for example "parc de la vill", it will very often to go the website https://www.parc-livradois-forez.org/ instead of searching, but sometimes it will search.

I noticed a few things:

  • if I press the backspace key at one point, then it never goes to the website and goes to search always
  • I couldn't pinpoint exactly the cases where it is 100% reproducible. I think the STR above makes it 100% reproducible for me.

Device information

  • Firefox version: 147 (nightly from 10/11/2025) but this happens for maybe 2 weeks for me so 146 is also affected. I'm not sure for 145 but I'd say it's not.
  • Android device model: S12e
  • Android OS version: 12

[Tracking Requested - why for this release]: this is a very painful bug

The bug is marked as tracked for firefox147 (nightly). However, the bug still isn't assigned.

:royang, could you please find an assignee for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(royang)
Keywords: regression

Hello,
Can you post a video of the issue?
Trying it in Nightly I can't reproduce.

Asking also for QA's help in finding steps to reproduce.

Flags: qe-verify+

Speculative fix to avoid a potential race condition between updated autocomplete
suggestions and the query edited by user to ensure that the right text is commited
when pressing Go on the keyboard.

Assignee: nobody → petru
Status: NEW → ASSIGNED
Duplicate of this bug: 2001014
Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b80d5c5f9fc0 https://hg.mozilla.org/integration/autoland/rev/3e738dce4d24 Prevent commiting lingering autocomplete suggestions in the browser toolbar r=android-reviewers,Roger
Attached video Searching for "royston"

Hey, I managed to reproduce this morning, here is a video

Thank you for this!
Based on the recording it seems like royalsociety.org was the last shown autocomplete suggestion in the address bar before being used instead of the typed text.
Think this scenario will be fixed by the patch we just merged.

Flags: needinfo?(royang)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch

:petru do you think this low-risk to uplift to beta?

Flags: needinfo?(petru)

This is low risk but since I was not able to reproduce it I'd wait on uplifting until getting a confirmation that the issue was fixed in the current Nightly.
@Julien / QA Can you confirm?

I think this is fixed but it's hard to say for sure, given that this isn't happening always. But I think I didn't see the issue for some time now.

Verified on the latest Nightly 147.0a1 (24.11.2025) using Google Pixel 10 (Android 16), Google Pixel 3 XL (Android 9), and Motorola Moto G72 (Android 13). The issue could not be reproduced on any of these devices.
Please note that we were also unable to reproduce the bug on older builds.

Flags: qe-verify+

:petru, this is the last week of beta for Fx146. There are only two beta builds left, if this is safe for a beta uplift request or should ride the train with Fx147

Speculative fix to avoid a potential race condition between updated autocomplete
suggestions and the query edited by user to ensure that the right text is commited
when pressing Go on the keyboard.

Original Revision: https://phabricator.services.mozilla.com/D273262

(cherry picked from commit b80d5c5f9fc018dbb3b6bd4d652aaa7933dcd5c4)

Attachment #9528944 - Flags: approval-mozilla-beta?

(In reply to Donal Meehan [:dmeehan] from comment #15)

:petru, this is the last week of beta for Fx146. There are only two beta builds left, if this is safe for a beta uplift request or should ride the train with Fx147

Thank you!
Patch is safe and seems to have fixed things so we'd definitely want it uplifted, added a request now.

Flags: needinfo?(petru)

firefox-beta Uplift Approval Request

  • User impact if declined: Sometimes the autocomplete suggestion from the addressbar is loaded instead of the user query.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: https://bugzilla.mozilla.org/show_bug.cgi?id=1999634#c0
  • Risk associated with taking this patch: low
  • Explanation of risk level: Small targeted patch confirmed by QA to not cause issues.
  • String changes made/needed: --
  • Is Android affected?: yes
Flags: qe-verify+
Attachment #9528944 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I was not able to reproduce this issue on the affected builds, but I can confirm that the search is working as expected on Firefox 146 beta 8 using all 3 search engines (Google, Bing and DuckDuckGo) on Google Pixel 10 Pro (Android 16) and Lg G7 Fit (Android 9).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: