Firefox – How to prevent bare windows in Firefox and related browsers

firefoxjavascriptlinks

Some websites like to use JavaScript links that open a new window, which lacks any UI except for the address bar. Meaning no extension buttons, search bar, home/back/etc. buttons, bookmarks, tab bar and so on. Opening the link in a new tab/window does not work because the JS fails to work properly.

I encountered this behavior on a private site so I can't link to an example, but if you know one please let me know and I will add it here.

Is there a way to prevent this from happening, and force every window created by JS to have the full interface of a normal Firefox window? Is there a way to get controls back? I believe Chrome for instance has a menu command for it, but I'm not sure about FF.

NB: I am actually on Waterfox but let's answer for Firefox and hopefully it will apply to the forks as well.

Best Answer

Found it: http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

In about:config find dom.disable_window_open_feature.*

There are quite a few entries here that correspond to the various features that can be disabled/manipulated. Here's the list:

  • close: Prevents the close button from being disabled.
  • directories: Prevents the bookmarks toolbar from being hidden.
  • location: Prevents the address bar from being hidden
  • menubar: Prevents the menubar from being hidden.
  • minimizable: Prevents popup window minimization from being disabled.
  • personalbar: Prevents the bookmarks toolbar from being hidden.
  • resizable: Prevents popup window resizing from being disabled.
  • scrollbars: Prevents the scrollbars on a popup from being disabled.
  • status: Prevents the status bar from being hidden.
  • titlebar: Prevents the title bar from being hidden.
  • toolbar: Prevents the navigation toolbar from being hidden.

Setting these to true overrides the developers preferences.

Related Question