Closed Bug 67947 Opened 24 years ago Closed 23 years ago

window.open() opens small window given width=0,height=0

Categories

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

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: venur, Assigned: danm.moz)

References

Details

(Keywords: dom0, helpwanted)

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/4.73 [en] (WinNT; I)
BuildID:    2001020320

If the page in atachement is loaded and if we try to open a window without 
giving any values for width and height, then it is not opening a full size 
window.

Reproducible: Always
Steps to Reproduce:
1.Start the browser
2.Load the page given in the attachment.
3.With no values in the width
and height field,Press enter.

Actual Results:  Opens a small sized window.

Expected Results:  A full screen  size window should be opened with the url 
loaded  the page.
Attached file HTML/JAVASCRIPT
Reassigning to danm.
Assignee: jst → danm
Oh. We're seeing the "width=0,height=0" string and trying to do it, getting a 
minimal 100x100 window. We should simply ignore explicit 0s as do IE and Nav 4. 
This one's an easy fix.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Window.open() function with out providing the width and height values should open a full window → window.open() opens small window given width=0,height=0
Target Milestone: --- → mozilla1.0
(to be precise, the test page gives open() the string "...width=,height=", which 
all three browsers treat the same as "...width=0,height=0"). Might as well make 
this one Moz 0.9, since the fix is understood.
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla0.9
Keywords: dom0
->moz0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
<html>
Following code doesn't fail. Following code also doesn't use width & height.
Its only reporters particular testcase fails.

<head>
<title></title>
</head>
<body>
<input type="button" value="open" 
onClick="window.open('http://www.yahoo.com');">
</body>
</html>

Target Milestone: mozilla0.9.1 → mozilla0.9.2
No time left for this in current release cycle, ->0.9.3/helpwanted
Keywords: helpwanted
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
r=joki
.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 44783 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: