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)
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.
Updated•19 years ago
|
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.
Comment 1•19 years ago
|
||
See Bug 313300.
In about:config you should set browser.link.open_newwindow.restriction to 0.
http://kb.mozillazine.org/About:config
Updated•19 years ago
|
Whiteboard: DUPEME
Comment 2•19 years ago
|
||
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);
Comment 3•19 years ago
|
||
Confirmed. windows.open() can still open new windows.
Comment 4•18 years ago
|
||
This is the intended behavior. Bug 313300 changed the default value for browser.link.open_newwindow.restriction to "2".
Comment 5•18 years ago
|
||
*** Bug 357441 has been marked as a duplicate of this bug. ***
Comment 6•18 years ago
|
||
*** Bug 357686 has been marked as a duplicate of this bug. ***
Comment 7•18 years ago
|
||
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.
Updated•16 years ago
|
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.
Description
•