Open Bug 363288 Opened 18 years ago Updated 2 months ago

window.open targeting does not work from second level popup (new tab opened instead)

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Windows Server 2003
defect

Tracking

()

UNCONFIRMED

People

(Reporter: allstone, Unassigned)

Details

Attachments

(1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

If I open popup window named name1, and then I open another popup named name2 (all popups opended with window.open), I cant get the first popup from second. There is I cant use window.open("","name1") from name2, because this only opens popup in a new tab in name2 window. By the way, the first name1 was opened from iframe.

Reproducible: Always

Steps to Reproduce:
Theres no special way, it just does not work.
Actual Results:  
Popup as a tab not in main window, but in second popup's window instead


The popup normally should be opened in the first window of Firefox (the main window)
A testcase would be nice.
Summary: window.open is not working from second level popup → window.open targeting does not work from second level popup (new tab opened instead)
I had a related problem. Whe you open a new window with window.open('x.html',
'windowName', 'width=y,heigth=z') and the oppenned window do a
window.open('w.html') ou calls a link <a href='w.html' target='_blank'> the new
tab oppens on the first window, and on Firefox 2 it oppens on the current
windos (popup). That is really problematic on some web services. 
My problem was on Firefox 3... 
I have the same Rodrigo Mello's problem using Firefox 3.0.3
I open Firefox and from bookmarks I open a html page that contains this pop-up calling:
window.open('newpage.html','newwindow1',
      'scrollbars=yes,resizable=yes,status=yes,location=no,toolbar=no');
In newpage.html there is:
<a href="http://www.google.it/" target="newwindow2">
If I use Firefox 2.0.17, newwindow2 is a tab of newwindow1.
If I use Firefox 3.0.3, newwindow2 is a tab of initial page of firefox.
My users cannot see the new window newwindow2 because is opened under newwindow1, and they think to haven't clicked the link.
Assignee: general → nobody
QA Contact: ian → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
Attachment #9384288 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: