Closed Bug 2002936 Opened 2 months ago Closed 1 month ago

"switch to [tab group]" broken from tabs on sites with search functionality

Categories

(Firefox :: Address Bar, defect, P2)

Firefox 145
defect

Tracking

()

VERIFIED FIXED
148 Branch
Tracking Status
firefox148 --- verified
firefox149 --- verified

People

(Reporter: IanMBanksy+bugzilla, Assigned: daisuke)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0

Steps to reproduce:

Have a tab group. Open empty tab. type name of tab group. tab for "switch to tab group", enter. Works
Same steps, but in tab with search function i.e. youtube.com. does not work.

Actual results:

If current tab in same window with tab group: Makes search request to current tab site search AND switches focus to tab group.
If current tab in different window from tab group: Makes search request to current tab site search, does not switch focus.

Expected results:

Switch focus to tab group without any interaction with current window.

Blocks: tab-groups
Component: Untriaged → Tabbed Browser

Unfortunately I could not reproduce your issue. Switch to tab group worked for all scenarios mentioned. Would you be so kind as to answer a few questions so we can investigate this further?

Thank you.

Flags: needinfo?(IanMBanksy+bugzilla)

I haven't done those tests, but I've found one more condition to reproduce the bug: It only happens on sites that I've added as search engines

Flags: needinfo?(IanMBanksy+bugzilla)

Thanks, Simon, appreciate the quick reply!

I managed to reproduce this issue on:

  • Firefox Nightly 147.0a1;
  • Firefox 146.0;

Tested and reproduced on:

  • Windows 10;
  • macOS 15;

On Ubuntu 22 the tab is focused but the search is also executed. Windows and macOS both execute the search as well using the tab group name\keyword, but the switch isn't applied.

Setting as NEW.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Thank you for the report. It sounds like the "switch to tab group" quick action is having some kind of conflict with the search engine search mode. I'm not sure if there's something we need to do on the tab group side https://searchfox.org/firefox-main/source/browser/components/urlbar/ActionsProviderTabGroups.sys.mjs or on the search engine search side. Passing this to the Search component, but we can have the tab groups team fix the issue if that's where the problem is.

Component: Tabbed Browser → Search
Component: Search → Address Bar
Severity: -- → S3
Priority: -- → P2
Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Whiteboard: [sng]
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
QA Whiteboard: [search] [qa-triage-done-c148/b147] [qa-ver-needed-c148/b147]

Reproducible on a 2025-11-28 Firefox Nightly build on Windows 10.

Verified as fixed on Firefox Nightly 149.0a1 and Firefox 148.0b1 on Windows 10, macOS 15 and Ubuntu 22.

Status: RESOLVED → VERIFIED
QA Whiteboard: [search] [qa-triage-done-c148/b147] [qa-ver-needed-c148/b147] → [search] [qa-triage-done-c148/b147] [qa-ver-done-c149/b148]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: