Prevent Web Sites from Opening "Naked" Windows in Firefox
Posted by Adam Pash at 10:00 AM on February 27, 2008
When web sites open new windows with JavaScript, they have the ability to disable certain features of the new windows—like your address bar, toolbar, or even resizability. All-things-Mozilla web site MozillaZine details how to tweak your about:config settings to prevent JavaScript from launching these stripped windows. Just type about:config in your address bar, then paste dom.disable_window_open_feature into the filter textbox to start tweaking your settings. We've mentioned this feature once before, but the MozillaZine article goes into great detail on how each change will affect your browser.
Tags: firefox | firefox tip | how to | web browsers

Comments (AU Comments · US Comments)
There are currently no AU comments for this post.
InspectorxGadget
Posted 11:59 AM 27/2/08
How does this interact with the option (in the Tab Mix Plus Extension) to have all pop-ups open in a tab. Presumably one wouldn't need both, because there would be no "naked windows", just tabs with the content only occupying a small part of the page.
InspectorxGadget
Flyne
Posted 11:59 AM 27/2/08
Thought I'd add that this works with Mac's Camino, too.
Flyne
da5id_nz
Posted 12:47 PM 27/2/08
ps, I meant to say "that are buttons or things you can't reach because they are out of reach beyond the edge of the window that's been opened"
pps, down under we say 'ticked' instead of 'checked' with regards to check boxes.
da5id_nz
da5id_nz
Posted 12:47 PM 27/2/08
One tip I learned...
Quite a lot of times when a site opens a pop-up window, it doesn't fit in the pop-up window properly...eg, that are buttons or things you can't reach because they are out of reach beyond the edge or the window that's been opened.
What you do to fix this is go to Tools -> Options, the Content tab, and where Enable Javascript is ticked, click the Advanced button.
In here make sure you tick 'Hide The Status Bar'.
That should fix your problems from here on. Don't ask me the technical reason, but it works!
da5id_nz
joelena
Posted 1:37 PM 27/2/08
@InspectorxGadget: You're right, that TabMixPlus setting makes these about:config tweaks unnecessary. I don't know why I never tried that setting - thanks for reminding me of it!
@da5id_nz: don't you mean "with regards to tick boxes"? :)
joelena
Jarett
Posted 1:37 PM 27/2/08
I deal with this by not letting Firefox open new windows, only new tabs.
Tabs are always decently clothed.
Jarett
da5id_nz
Posted 2:51 PM 27/2/08
@joelena: haha yeh. Why can't we edit previous posts in here? Would make life a lot easier...
da5id_nz
yochanan_marqos
Posted 8:52 PM 27/2/08
Or you can use JavaScript Options.
yochanan_marqos
sebf
Posted 12:56 AM 28/2/08
In the Firefox 3 Beta's I have been testing it seems to keep the address bar regardless if the JavaScript link has told the browser to hide it.
sebf