bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

browser.link.open_newwindow is ignored.




8 years ago
3 months ago


(Reporter: William, Unassigned)



Firefox Tracking Flags

(Not tracked)





8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

If one sets preferences like the following one would expect that all new windows should open in tabs instead.

browser.link.open_newwindow.restriction  = 0
browser.link.open_newwindow              = 3

However, if one clicks the ? in the code box from the options of "view plainprint ?" the window will still open in a new window.  The offending piece of javascript that does this is the following.

window.open('', '_blank', 'dialog,width=300,height=150,scrollbars=0');  I am guessing this is caused by the "dialog" window feature option.

Reproducible: Always

Steps to Reproduce:
1.  Set browser.link.open_newwindow.restriction = 0
2.  Set browser.link.open_newwindow = 3
3.  Run javascript:window.open('', '_blank', 'dialog');
Actual Results:  
The browser.link.open_newwindow is ignored and the page opens in a new window instead of a new tab.

Expected Results:  
The page should open in a new tab.
Confirmed with latest trunk on Windows Vista. Is useful for bookmarklet functions :)
Version: unspecified → Trunk

Comment 2

8 years ago
I do not know if this is related, but I have my browser configured the same (browser.link.open_newwindow.restriction = 0 and browser.link.open_newwindow = 3), and when I click on the "Learn more" link in the location aware browsing notice ("xyz wants to know your location.  Learn more..."), Firefox opens a new window rather than opening a new tab.  The page where I received this notice is http://www.sennheiserusa.com/private_headsets_pc_pro-gaming_skype-voip_500928.  I'm running Firefox 3.6.6 on Linux 2.6.34 (Ubuntu 10.04) x86-64.

Comment 3

7 years ago
Reporter, can you still reproduce this bug in Firefox 6?

Please update to Firefox 6 or later, update your plugins, and retest in a new profile. If you still see the issue with the updated version of Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME.

Comment 4

7 years ago
I can reproduce.

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111001 Firefox/10.0a1

Comment 5

3 months ago
Time to close, I think …
You need to log in before you can comment on or make changes to this bug.