Closed Bug 7141 Opened 26 years ago Closed 25 years ago

Window.open() with 1 parameter loads URL of child window in parent window

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: joki)

Details

(Whiteboard: [TESTCASE] window.open(x) open in self, window.open(x,y,z) in new window)

Attachments

(2 files)

Window.open() does not open new window, but instead it loads URL of child window in parent window. Product: seamonkey [Apprunner/ Viewer] Build: 05-25-09. Steps to reproduce bug: 1] Please copy the code I'm providing. Save as HTML file and open this file in viewer as well as apprunner. 2] As soon as you open this file, it is supposed to open one more window with URL 'http://www.yahoo.com' Expected Results: As soon as you open this file, it is supposed to open one more window with URL 'http://www.yahoo.com' Actual Results: It does not open new window. And it loads URL 'http://www.yahoo.com' in parent window itself. CODE: <html> <head> <title>Test Page</title> </head> <body > <form name="workform"> <SCRIPT LANGUAGE="JavaScript1.1"> window.open('http://www.yahoo.com'); </SCRIPT> </form> </body> </html> END OF CODE.
Priority: P3 → P1
Setting priority to P1 since blocking development of certain testcases.
Summary: Window.open() loads URL of child window in parent window. → Window.open() with 1 parameter loads URL of child window in parent window
Whiteboard: [TESTCASE] window.open(x) open in self, window.open(x,y,z) in new window
here we go, borrowing heavily from desale@netscape.com's test case: Product: seamonkey [Apprunner/ Viewer] Build: M7. Steps to reproduce bug: 1] Run the attachment 2 [details] [diff] [review]] As soon as you open this file, it is supposed to open one more window with URL 'http://www.yahoo.com' Expected Results: As soon as you open this file, it is supposed to open one more window with URL 'http://www.yahoo.com' Actual Results: It does not open new window. And it loads URL 'http://www.yahoo.com' in parent window itself. Additional information: if you use window.open('http://www.yahoo.com', "xxx", "") instead (it's commented in the attachment), a new window is opened. Conclusion: if no window name (the second parameter) is given, no new window opens; that narrows the bug a little bit.
Passing along to Tom after a brief discussion with him.
Assignee: vidur → joki
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
This has been fixed.
Status: RESOLVED → VERIFIED
Marking verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: