Closed Bug 2011220 Opened 1 month ago Closed 7 days ago

Middle clicking alternate engines should perform a search on the current search bar text in a new tab

Categories

(Firefox :: Search, enhancement, P2)

Firefox 149
enhancement

Tracking

()

VERIFIED FIXED
150 Branch
Tracking Status
firefox149 --- verified
firefox150 --- verified

People

(Reporter: caspy77, Assigned: dao, NeedInfo)

References

(Blocks 2 open bugs, Regressed 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(3 files)

I'm pretty frustrated with the massive downgrade that the new search bar is, as I perform a lot of one-off searches with different engines throughout the day and the new widget makes doing that painful, requiring more and slower steps.

To alleviate this pain I request adding a feature that shouldn't step on any current functionality: After clicking the search engine dropdown, middle clicking on one of the engines will not change the currently selected engine, but will open a new tab with the search results page (based on the text currently in the search box).

Blocks: 1974218

Discussing what this implementation will look like with UX

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [sng]

I want to second this request in general, the old search bar had a “This time, search with“ feature that was very valuable. I think permanently changing the default search engine is something that is rarely done.

I have been thinking a bit more about the new behavior and have also comparing it directly with the old behavior now. I think the following issues remain for me personally with the new design:

The old design had a “This time, search with“ selection for the search providers, so you could first enter a search term, and then select a search provider from the dropdown making you instantly search using that provider. This selection was however not persisted so the next search would again use the default provider.

  • In the new design, selecting the search provider does not execute the search. So one has to confirm the search again by pressing Enter.
    • This is probably because the new UI assumes that you select the provider first and then enter the search terms (instead of the reverse as it was before).
    • In my mind, this contrasts with the wording “Search with” which sounds like it would immediately execute the search.
  • The new design does persist the selected search provider. If I want to enter the search bar again (to search for something else), I first need to press Escape to clear the selected search provider and return to the default. So in order to return to the default behavior, you actually have to remember to reset it before searching for something again.
    • This is in contrast to the URL bar, where after you have selected a search provider and pressed enter, the URL bar resets to its default behavior and just shows the opened URL, making the search provider a temporary selection.

There does exist a one-off search functionality: If you open the search provider dropdown and then confirm the provider using Shift+Enter, then the search is immediately executed and the search provider is not persisted. This seems like it would fit my workflow very well, but the whole thing feels like the keyboard modifiers are all over the place:

  • In the provider dropdown:
    • Shift+Enter performs a one-off search.
    • Ctrl+Enter or Alt+Enter do nothing special and just selects the search provider (just like Enter).
  • In the search bar itself:
    • Shift+Enter opens the search in a new window.
    • Alt+Enter opens the search in a new tab.
    • Ctrl+Enter does nothing special and just executes the search (just like Enter).
  • In the URL bar:
    • Shift+Enter opens the URL or search term in a new window.
    • Alt+Enter opens the URL or search term in a new tab.
    • Ctrl+Enter opens the term as a default URL (e.g. example turns into www.example.com)
  • In other places:
    • Shift+Enter and Shift+Click opens links in a new window.
    • Ctrl+Enter and Ctrl+Click opens links in a new tab.

So if this already introduces breaking behavior, maybe the keyboard modifiers could be changed to be a bit more consistent (e.g. Shift = new window, Ctrl = new tab) and also there should be an option to perform a one-off search in a new window or tab from the search provider dropdown itself.

Priority: P3 → P2

Thanks for your thoughtful input, Patrick. Would you mind filing a separate bug on what you're proposing there? In this bug we'd like to focus on middle click behavior so we can get that part fixed asap.

Flags: needinfo?(PatrickWesterhoff)

As far as I can tell, the following two reviews are essentially about the same thing: a blocked ability to quickly perform a search query without changing the default engine and displaying the results in a new tab:

This is especially true if the same query text needs to be sent sequentially to multiple search engines.

Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/55bdd1b7f580 https://hg.mozilla.org/integration/autoland/rev/ac95c7e2cf30 Middle clicking alternate engines should perform a search on the current search bar text in a new tab. r=mbeier,urlbar-reviewers
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

firefox-beta Uplift Approval Request

Attachment #9550587 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Attachment #9550587 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Contact: aflorinescu

Verified middle click implementation in search box using 150.0a1 (2026-03-06) on Windows 11, Mac 13 and Ubuntu 22.

QA Whiteboard: [qa-ver-needed-c150/b149][uplift]
Whiteboard: [sng] → [sng][scotchbonnet-followon]
Whiteboard: [sng][scotchbonnet-followon] → [sng]
Regressions: 2001962

Middle click implementation verified on Mac 15, Win11 and Ubuntu 22 using Beta149.0b6.

One note in regards of the middle click functionality implemented for search bar is that the search bar USB remains open after middle click. IMO, I see it more like a feature than a bug, but thinking to confirm if that's intended and we're ok moving with it as-is.

Flags: needinfo?(dao+bmo)
Flags: needinfo?(cbellini)
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c150/b149][uplift] → [qa-ver-done-c150/b149][uplift]
Flags: qe-verify+

(In reply to Adrian Florinescu [:aflorinescu] from comment #13)

One note in regards of the middle click functionality implemented for search bar is that the search bar USB remains open after middle click. IMO, I see it more like a feature than a bug, but thinking to confirm if that's intended and we're ok moving with it as-is.

It's intentional. Thanks!

Flags: needinfo?(dao+bmo)
Flags: needinfo?(cbellini)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: