Open Bug 1852737 Opened 2 years ago Updated 2 years ago

Firefox provides no equivalent to -new-window to open a url in a new private window

Categories

(Firefox :: Private Browsing, enhancement, P3)

Firefox 117
enhancement

Tracking

()

People

(Reporter: jbo, Unassigned)

Details

Attachments

(2 obsolete files)

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

Steps to reproduce:

In windows 10. I created a shortcut as such: "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window -url https://blablbabla

Actual results:

A new private window opens, but the URL is not loaded. If i have another private window already avalable, the url is loded in that window, never in the new window.

Expected results:

The URL listed in the command should have opened in the new window.

Note: if a firefox window is already opened, the URL will open as a new tab in the already existing firefox, whether it is private or not !

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Win32
Product: Firefox → Core

(In reply to jlp from comment #1)

Note: if a firefox window is already opened, the URL will open as a new tab in the already existing firefox, whether it is private or not !

That's expected behavior. To open something in a private window, the command you need is

firefox.exe -private-window https://example.com

-url is for normal windows, while -private-window replaces it for private windows. In retrospect, this was perhaps not the best choice of semantics, but I'm afraid we're stuck with it now. The command you give should open a new private window, then open the URL in a non-private window; if it actually opens the URL in a private window, that's a bug (and may specifically be bug 1069263).

There is a command-line argument -new-window that will open a URL in a new normal window, but there doesn't seem to be any equivalent for new private windows. We should probably have one! I've adjusted the bug title accordingly.

Forwarding to Firefox :: General per the moz.build notation for browser/components/BrowserContentHandler.sys.mjs.

Status: UNCONFIRMED → NEW
Component: Widget: Win32 → General
Ever confirmed: true
Product: Core → Firefox
Summary: -private-window command does not work proerly with a URL appended → Firefox providfes no way to open command-line-provided URLs in new private windows
Summary: Firefox providfes no way to open command-line-provided URLs in new private windows → Firefox provides no way to open command-line-provided URLs in new private windows
Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P3
Summary: Firefox provides no way to open command-line-provided URLs in new private windows → Firefox provides no equivalent to -new-window to open a url in a new private windows
Component: General → Private Browsing
Assignee: nobody → echen
Status: NEW → ASSIGNED

Comment on attachment 9357160 [details]
Bug 1852737 - Use index to track activation target item; r?smaug,masayuki

Revision D190348 was moved to bug 1856737. Setting attachment 9357160 [details] to obsolete.

Attachment #9357160 - Attachment is obsolete: true
Assignee: echen → nobody
Status: ASSIGNED → NEW
Summary: Firefox provides no equivalent to -new-window to open a url in a new private windows → Firefox provides no equivalent to -new-window to open a url in a new private window
Attachment #9386340 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: