为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Erratic behavior when using -private argument to start Firefox (Firefox ESR 38.2.1)

  • 4 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 user1251113

more options

Firefox ESR 38.2.1

a. Added -private switch to the desktop shortcut. b. Opens Firefox in private browsing.

For this -private switch to work: 1. If I start the firefox -private process and if regular firefox is also running,

   a. firefox -private does not work, instead opens a regular firefox window. 
   b. Clicking on "Private Browsing" does nothing in both firefox process(es) that are running now.

2. When -private is used to launch firefox (via a desktop shortcut). This weird/erratic behavior is not seen when using the "Private Browsing" function from within Firefox.

   a. The private browsing indicator (the purple/violet) icon does not show up.
   b. When you launch new tabs/windows from this firefox window (started with the -private switch) do NOT open as private tabs, they open as regular tabs and remember history etc...

Ultimately, I am looking for a desktop shortcut that will launch Firefox in Private Browsing and any tabs/windows launched from that window to remain as Private.

Folks - Any solutions/suggestions please?

Firefox ESR 38.2.1 a. Added -private switch to the desktop shortcut. b. Opens Firefox in private browsing. For this -private switch to work: 1. If I start the firefox -private process and if regular firefox is also running, a. firefox -private does not work, instead opens a regular firefox window. b. Clicking on "Private Browsing" does nothing in both firefox process(es) that are running now. 2. When -private is used to launch firefox (via a desktop shortcut). This weird/erratic behavior is not seen when using the "Private Browsing" function from within Firefox. a. The private browsing indicator (the purple/violet) icon does not show up. b. When you launch new tabs/windows from this firefox window (started with the -private switch) do NOT open as private tabs, they open as regular tabs and remember history etc... Ultimately, I am looking for a desktop shortcut that will launch Firefox in Private Browsing and any tabs/windows launched from that window to remain as Private. Folks - Any solutions/suggestions please?

所有回复 (4)

more options

Firefox needs to be completely closed in order for the command line switch -private to work OR you must already be running in the Private Browsing mode. Should matter if the "mask" is showing or you're in the "permanent" Private Browsing mode as set with "Always use ..." in Options > Privacy --> History. If Firefox isn't completely closed (IOW - gone from the Task Manager), it will just open another window which is not in the Private Browsing mode.

You would need a 2nd Profile to have Firefox have a window or windows in normal browsing mode AND in Private browsing mode at the same time. That would provide for 2 separate, independent Firefox processes.

more options

You can only open one Firefox window.

You can use an extension to get Private Browsing mode support per tab.

由cor-el于修改

more options

the-edmeister said

Firefox needs to be completely closed in order for the command line switch -private to work OR you must already be running in the Private Browsing mode. Should matter if the "mask" is showing or you're in the "permanent" Private Browsing mode as set with "Always use ..." in Options > Privacy --> History. If Firefox isn't completely closed (IOW - gone from the Task Manager), it will just open another window which is not in the Private Browsing mode. You would need a 2nd Profile to have Firefox have a window or windows in normal browsing mode AND in Private browsing mode at the same time. That would provide for 2 separate, independent Firefox processes.

Thanks for your reply!

What I am looking for is a shortcut to launch firefox in "Private Browsing" mode.

Default Behavior: 1. When you launch Firefox, you do a Ctrl + Shift + P => You get a private browsing (PB) window. 2. Any new tab opened from within this PB window, is a private browsing tab with the purple/violet mask (next to the minimize button) 3. If you want another PB window, we can do a Ctrl + Shift + P and get another PB window. 4. You can have both Normal Firefox windows, PB windows in this way.

However this behavior is not replicated when starting Firefox with a -private switch. 1. You get only one PB tab. You cannot open any more PB tabs. 2. The Ctrl + Shift + P shortcut does not open any more PB windows. 3. You can have 1 PB tab and as many Normal tabs/windows.

Why this restriction when starting Firefox with the -private argument?

more options

cor-el said

You can only open one Firefox window. You can use an extension to get Private Browsing mode support per tab.

Thanks for your reply.

That link mentions

-private Opens Firefox in permanent private browsing mode. Firefox 3.6 and later only.

Sorry, I do not see where that link mentions -private will only open one window.

My question is why the different behavior when launching Firefox with -private switch?

By different behavior, I mean when we launch Firefox normally and then switch to Private Browsing (via Ctrl + Shift + P) 1. You get to retain both Normal & Private windows. 2. Have as many tabs on either windows as you like.