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

Prevent new Firefox windows from being opened.

  • 2 réponses
  • 1 a ce problème
  • 2 vues
  • Dernière réponse par flathat

more options

I support an application that runs in Firefox under Ubuntu Linux 12.04. The computers used for this application are dedicated, not used for anything else.

If users open another Firefox window, either via the desktop icon or ^N Ctrl-N or File > New Window and run another instance of the application it makes a mess. So I want to prevent new windows being opened. Also prevent opening new tabs, although the users are less likely to open another instance of the app in a tab.

They are doing this (opening multiple instances) by mistake, not maliciously.

Removing File > New Window and disabling ^N would help. But preventing 2nd+ launch by icon click is also necessary.

It would be nice if an administrator could undo it, even from the Linux command line or by editing a config file.

Thank you.

I support an application that runs in Firefox under Ubuntu Linux 12.04. The computers used for this application are dedicated, not used for anything else. If users open another Firefox window, either via the desktop icon or ^N Ctrl-N or File > New Window and run another instance of the application it makes a mess. So I want to prevent new windows being opened. Also prevent opening new tabs, although the users are less likely to open another instance of the app in a tab. They are doing this (opening multiple instances) by mistake, not maliciously. Removing File > New Window and disabling ^N would help. But preventing 2nd+ launch by icon click is also necessary. It would be nice if an administrator could undo it, even from the Linux command line or by editing a config file. Thank you.

Solution choisie

Maybe consider to create an extension to intercept OpenBrowserWindow()

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (2)

more options

Solution choisie

Maybe consider to create an extension to intercept OpenBrowserWindow()

more options

Thanks for the idea. My JS probably isn't up to coding it but I'll see if I can get some help.