Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How to open firefox 22 in private browsing and navigate an url from command line

  • 9 réponses
  • 26 ont ce problème
  • 1 vue
  • Dernière réponse par MonsterMMORPG

more options

Hello. What i want is simple

Start firefox at private browsing mode At this started private browsing mode open multiple urls

But it is not working

I tried this

It always open a new regular window and navigate url in that regular window. Also opens a private window but doesn't navigate any url

How to fix =

Hello. What i want is simple Start firefox at private browsing mode At this started private browsing mode open multiple urls But it is not working I tried this It always open a new regular window and navigate url in that regular window. Also opens a private window but doesn't navigate any url How to fix =

Toutes les réponses (9)

more options

Maybe you can achieve this with the Private Tab extension (pref: allowOpenExternalLinksInPrivateTabs) or ask to add this feature.

more options

@cor-el so how am i going to open private tab via command line and navigate url ?

more options
  1. Go to the Firefox menu.
  2. Go to open private window

Another window will pop up on firefox, and then you can use private browsing.

more options

I'm not sure if you can do this via the command line.

  • Bug 829180 - Externally opened urls may open in private browsing windows

(Please DO NOT comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html)

You should be able to drag a link in a Private Browsing mode window or a private tab.
Note that the Private Tab extension has a check-box in the right-click context menu of the tab on the tab bar to toggle the private mode of a tab.

more options

I need to somehow open a url in private window programmatically

more options

It seems to work if you set Firefox to always start in Private Browsing mode (browser.privatebrowsing.autostart = true)

  • Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Always use private browsing mode"
user_pref("browser.privatebrowsing.autostart", true);
more options

@cor-el yes but it is a very lame solution actually it is not a solution

more options

It is a workaround that you can consider because other ways probably aren't possible.

You could reserve a second profile in cases where you need to use the command line if you do not want to do this in the current default profile.

See:

You can use the -no-remote command line switch to open another Firefox instance with its own profile and run multiple Firefox instances simultaneously.

more options

@cor-el for a very simple feature, so much work. But it seems this the fault of developers. can't be helped