Open Bug 567674 Opened 14 years ago Updated 2 years ago

browser.link.open_newwindow is ignored.

Categories

(Firefox :: General, defect)

x86
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: unsigned.short, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) 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:1.9.2.3) 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
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.
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.
I can reproduce.

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111001 Firefox/10.0a1
Time to close, I think …
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.