Open Bug 1667577 Opened 4 years ago Updated 2 years ago

Command line option to start a search should follow the user's preferences

Categories

(Firefox :: Search, enhancement, P5)

80 Branch
enhancement

Tracking

()

People

(Reporter: phoenixclank, Unassigned)

References

Details

(Keywords: papercut)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Steps to reproduce:

  1. in "preferences", tick the box next to "open links in tabs instead of new windows"
  2. $ firefox to have a window already open
  3. $ firefox --detach --new-window example.com opens example.com in a new window
  4. close that window again
  5. $ firefox --detach --new-tab example.com opens example.com in a new tab in the first window, and gives that window focus
  6. $ firefox --detach --search foo

Actual results:

a new window opens, searching for "foo" with the default search engine

Expected results:

A new tab should have opened in the already-open window, searching for "foo" with the default search engine. Ideally, the already-open window should receive focus.

If making the behavior of the command line option --search dependent on the "new tabs vs. new windows" preference is not feasible, I suggest implementing a new command line option like --search-new-tab.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Search
Component: Search → Shell Integration
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Component: Shell Integration → Search
Severity: -- → N/A
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Priority: -- → P5
Hardware: x86_64 → All
Keywords: papercut

Updating summary, it would be simpler and probably better for --search to follow the user's preferences.

Summary: there should be a command line option to open a search in a new tab → Command line option to start a search should follow the user's preferences
You need to log in before you can comment on or make changes to this bug.