5.5 Disable Closing of Windows via Scripts

Information

Firefox can be configured to prevent scripts from closing browser windows.
Preventing an arbitrary web site from closing the browser window will reduce the probability of a user losing work or state being performed in another tab within the same window.

Solution

Perform the following procedure:

* Open the mozilla.cfg file in the installation directory with a text editor

* Add the following lines to mozilla.cfg:

lockPref("dom.allow_scripts_to_close_windows", false);

See Also

https://workbench.cisecurity.org/files/1158

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7a.

Plugin: Unix

Control ID: 2acd55c8bd2fd3be3c7b3f3ede9968122fca2f4cabc102425167edb20cd129c7