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 close firefox with a script

  • 3 réponses
  • 2 ont ce problème
  • 1 vue
  • Dernière réponse par FredMcD

more options

Hello,

Reading several forums and articles, I realized that Firefox is fighting again javascripts allowing to close windows automatically or after clicking on a HTML button or link.

A given justification in one of the post of this forum was "Actually due to security reason and user experience aspects you now can't cause the browser to be closed[Completely], only popup windows can be closed or the one parent to a script." and we have always the following sentence coming just after "The user knows anyway how to close his browser".

I leave aside the question of user experience aspect; even I cannot accept this justification because according to me, it is not the business of a browser to decide about this kind of topics but the one of the "ergonomist", "web designers" and "developers" in function of its experience, the type of users targeted by the site/web application and the technical requirements linked to the environment.

According to me , the only remaining justification is the security reason....

My questions are then : What is this security reason? Why is it dangerous to simply closing a window through a script? According to me, the worst is that could be annoying for users but generating a security problem, I do not see how? I would like to understand.

Kind regards.

Hello, Reading several forums and articles, I realized that Firefox is fighting again javascripts allowing to close windows automatically or after clicking on a HTML button or link. A given justification in one of the post of this forum was "Actually due to security reason and user experience aspects you now can't cause the browser to be closed[Completely], only popup windows can be closed or the one parent to a script." and we have always the following sentence coming just after "The user knows anyway how to close his browser". I leave aside the question of user experience aspect; even I cannot accept this justification because according to me, it is not the business of a browser to decide about this kind of topics but the one of the "ergonomist", "web designers" and "developers" in function of its experience, the type of users targeted by the site/web application and the technical requirements linked to the environment. According to me , the only remaining justification is the security reason.... My questions are then : What is this security reason? Why is it dangerous to simply closing a window through a script? According to me, the worst is that could be annoying for users but generating a security problem, I do not see how? I would like to understand. Kind regards.

Toutes les réponses (3)

more options

JavaScript can be used to close a window that was opened by JavaScript, but not otherwise.

If you think Mozilla is wrong, please submit feedback here - https://input.mozilla.org/en-US/feedback .

more options

I am sorry but that does not answer my question.

What is the threat to leave a javascript to close a Firefox window.

Chrome, IE, Opera, Safari still leave doing it (even sometimes, it is through a browser breach); why not Firefox?

Kind regards.

more options

Auto Shutdown {web link} Executes a command when all downloads are finished. (supports DownThemAll!)