Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
已解决 已存档

Unable to open a specific URL in private mode from the command line

tomhonour 已回复
Levedura

I'm having trouble opening urls in a private window from the command line on Windows 11.

Firefox version: 144.0.2

Starting a new private window works fine with "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window

But doing: "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://www.google.com"

just opens the link in the last selected window if the last window selected is non private it just opens the link there instead of a new or existing private window

I have also tried with no success: "C:\Program Files\Mozilla Firefox\firefox.exe" -private "https://www.google.com"

I'm having trouble opening urls in a private window from the command line on Windows 11. Firefox version: 144.0.2 Starting a new private window works fine with "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window But doing: "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window "https://www.google.com" just opens the link in the last selected window if the last window selected is non private it just opens the link there instead of a new or existing private window I have also tried with no success: "C:\Program Files\Mozilla Firefox\firefox.exe" -private "https://www.google.com"

所有回复 (2)

选择的解决方案

See if this works.

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

I'm also experiencing this issue and quoting the URL doesn't solve it.

Looks like it's a known bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1977140

由tomhonour于修改