Closed Bug 324322 Opened 19 years ago Closed 16 years ago

window.open() causes new window to open even when "Open all links in tab" is set.

Categories

(Firefox :: Tabbed Browser, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 314721

People

(Reporter: sciguyryan, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8) Gecko/20060120 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8) Gecko/20060120 Firefox/1.5 Found this on accident.Click the image window.open() causes new window to open even when "Open all links in tab" is set. Is this supposed to occur or should it simply do as links to and force it to open into a new tab and not a new window. Either way thought I'd rep[ort it incase its a bug. Reproducible: Always Steps to Reproduce: 1. Go the the link above. 2. Click the image 3. Actual Results: A new window appears. Expected Results: A new tab should appear. Irrelivant, tested in the latest Dark Park build and the latest Firefox build also.
Summary: Found this on accident - window.open() causes new window to open even when "Open all links in tab" is set. → window.open() causes new window to open even when "Open all links in tab" is set.
See Bug 313300. In about:config you should set browser.link.open_newwindow.restriction to 0. http://kb.mozillazine.org/About:config
Whiteboard: DUPEME
Sorry, incomplete information. These two prefs together open the window of the URL in a new tab: user_pref("browser.link.open_newwindow", 3); user_pref("browser.link.open_newwindow.restriction", 0);
Confirmed. windows.open() can still open new windows.
Blocks: 162189, 207678
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: DUPEME
This is the intended behavior. Bug 313300 changed the default value for browser.link.open_newwindow.restriction to "2".
*** Bug 357441 has been marked as a duplicate of this bug. ***
*** Bug 357686 has been marked as a duplicate of this bug. ***
This is incorrect behaviour and should be fixed. If the user says they want all new window requests turned into new tabs then Javascript should not be allowed to overrule them. This is especially true in the light of bug 348031, which will not allow you to use command-w to close the new window.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.