Searchmode defaults to Google after browser restart
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
People
(Reporter: oardelean, Assigned: yazan)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [sng])
Attachments
(3 files, 3 obsolete files)
Notes
- Reproducible when entering searchmode for Bookmarks, Tabs, Actions and History options.
Found in
- Nightly 133.0a1;
Affected versions
- Nightly 133.0a1;
Affected platforms
- Ubuntu 22;
- macOS 14;
- Windows 10;
Preconditions
- Have browser.urlbar.scotchBonnet.enableOverride set to true
- Have browser.urlbar.searchRestrictKeywords.featureGate set to true
Steps to reproduce
- Launch Firefox and open a new tab.
- From the Dedicated Search Button select Bookmarks.
- Restart Firefox.
- Observe the address bar.
Expected result
- Searchmode is enabled for Bookmarks.
Actual result
- Searchmode is enabled for Google.
Regression range
- Not a regression.
Reporter | ||
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
|
||
Assignee | ||
Comment 2•4 months ago
|
||
Updated•4 months ago
|
Updated•4 months ago
|
Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 5•2 months ago
|
||
bugherder |
Assignee | ||
Comment 6•2 months ago
|
||
Currently, multiple calls to #updateSearchIcon can run concurrently. When restarting the browser with a tab , and another tab in which a local search mode is active, the local search mode is incorrectly displayed as the default engine search mode. I believe this is due to the first #updateSearchIcon call (default engine, triggered when new tab is reopened) taking longer than the subsequent #updateSearchIcon call (triggered when the search mode is restored).
This is probably due to [[ https://searchfox.org/mozilla-central/rev/b6718bf263ae780289da471f0ea35797a09e2f05/browser/components/urlbar/SearchModeSwitcher.sys.mjs#329-334 | this ]] code taking a while to execute in comparison to [[ https://searchfox.org/mozilla-central/rev/b6718bf263ae780289da471f0ea35797a09e2f05/browser/components/urlbar/SearchModeSwitcher.sys.mjs#338-342 | this ]] code that runs for local search modes.
Ensuring that an #updateSearchIcon call terminates if search mode switches during its async processing prevents it from interfering with the next call triggered and incorrectly overriding the icon.
Original Revision: https://phabricator.services.mozilla.com/D233036
Updated•2 months ago
|
Comment 7•2 months ago
|
||
beta Uplift Approval Request
- User impact if declined: Users could see incorrect search mode icon when restarting browser, causing confusion
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Open a 2nd tab on browser and change search mode to bookmarks (with scotch bonnnet enabled). Restart the browser and observe search mode icon/label. It should display bookmarks.
- Risk associated with taking this patch: Low
- Explanation of risk level: Patch avoids updating icon when search mode changes during the update call. It's a very small fix so the risk is low.
- String changes made/needed: N/A
- Is Android affected?: no
Assignee | ||
Comment 8•2 months ago
|
||
Currently, multiple calls to #updateSearchIcon can run concurrently. When restarting the browser with a tab , and another tab in which a local search mode is active, the local search mode is incorrectly displayed as the default engine search mode. I believe this is due to the first #updateSearchIcon call (default engine, triggered when new tab is reopened) taking longer than the subsequent #updateSearchIcon call (triggered when the search mode is restored).
This is probably due to [[ https://searchfox.org/mozilla-central/rev/b6718bf263ae780289da471f0ea35797a09e2f05/browser/components/urlbar/SearchModeSwitcher.sys.mjs#329-334 | this ]] code taking a while to execute in comparison to [[ https://searchfox.org/mozilla-central/rev/b6718bf263ae780289da471f0ea35797a09e2f05/browser/components/urlbar/SearchModeSwitcher.sys.mjs#338-342 | this ]] code that runs for local search modes.
Ensuring that an #updateSearchIcon call terminates if search mode switches during its async processing prevents it from interfering with the next call triggered and incorrectly overriding the icon.
Original Revision: https://phabricator.services.mozilla.com/D233036
Updated•2 months ago
|
Comment 9•2 months ago
|
||
beta Uplift Approval Request
- User impact if declined: Users could see incorrect search mode icon when restarting browser, causing confusion
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Open a 2nd tab on browser and change search mode to bookmarks (with scotch bonnnet enabled). Restart the browser and observe search mode icon/label. It should display bookmarks.
- Risk associated with taking this patch: Low
- Explanation of risk level: Patch avoids updating icon when search mode changes during the update call. It's a very small fix so the risk is low.
- String changes made/needed: N/A
- Is Android affected?: no
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Comment 10•2 months ago
|
||
uplift |
Updated•2 months ago
|
Updated•2 months ago
|
Reporter | ||
Comment 11•2 months ago
|
||
Reproducible on a 2024-10-17 Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 136.0a1 and Firefox 135.0b6 ( treeherder build) on Windows 10, Ubuntu 22, macOS 14.
Description
•