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: 024f04212dd3b70e8c0bc813e131ca51429e383a99607b7501ff402251dd50ba