Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 2 回覆
  • 2 有這個問題
  • 146 次檢視
  • 最近回覆由 tomhonour

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"

被選擇的解決方法

See if this works.

   firefox --private-window "https://example.com"
從原來的回覆中察看解決方案 👍 1

所有回覆 (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 於 修改

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題