Firefox has a few options that allow you to decide what scripts can and can not do with windows. These options are available by going to Tools > Options… > Content, and beside “Enable JavaScript”, clicking on Advanced. However, this list of options doesn’t cover them all. There are some other useful options which can be applied by using about:config to change the following:
dom.disable_window_open_feature.resizable
Set this to true to make sure all pop-up windows are resizable.
dom.disable_window_open_feature.minimizable
Set this to true to make sure all pop-up windows are minimizable.
dom.disable_window_open_feature.menubar
Set this to true to always display the menu in pop-up windows.
dom.disable_window_open_feature.location
Set this to true to always display the Navigation Toolbar in pop-up windows.
dom.disable_window_open_feature.scrollbars
Set this to true to prevent sites from disabling scrollbars.