window position incorrect when closed via close box

RESOLVED WORKSFORME

Status

()

defect
P3
normal
RESOLVED WORKSFORME
20 years ago
4 years ago

People

(Reporter: law, Assigned: danm.moz)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

20 years ago
This is on Windows with the 1999-09-03 build.

The JS properties window.screenX and window.screenY have what appear to be
incorrect values when the window is closed via the close box.  The JS in
question resides in the onunload handler for the document.  The values are 0.

window.outerWidth and window.outerHeight are correct, which seems odd.

This is an issue because the values are used to set the x/y attributes on the
<window> element (so that the window opens in the same position).  The end
result is that closing the window via the close box results in (0,0) being
stored as the persistent position.

Closing via File->Open has the desired effect.

Updated

20 years ago
Assignee: trudelle → danm

Comment 1

20 years ago
reassigning to danm, but I have never understood why closing a window sets the
persistent position.  That isn't something that users expect, and it isn't
discoverable. If anything, sizing and positioning a window should set the
persistent size/position.
Reporter

Comment 2

20 years ago
Note that storing the values upon resize requires a fix for at least one of bugs
#13123, #13126, or #13127.  But I don't much care, aside from that.  I just
tried to make it work like 4.x.
Assignee

Updated

20 years ago
Status: NEW → ASSIGNED
Target Milestone: M14

Comment 3

20 years ago
mass moving m14 bugs to m15

Comment 4

20 years ago
giving me rest of phillips open qa contact bugs, sorry for spam

Comment 5

20 years ago
*IGNORE* - massive spam changing open XPToolkit bug's QA contact to
jrgm@netscape.com
QA Contact: paulmac → jrgm
Assignee

Comment 6

20 years ago
This HTML works as I'd expect today. Calling this fixed.

<html><head><script>
  function DumpScreenx() {
    dump("screen(x,y) ("+screenX+","+screenY+")\n");
  }
</script></head>
<body onunload="DumpScreenx()">
<form>
  <input type=button value="Dump screenx" onclick="DumpScreenx()">
  <input type=button value="close" onclick="window.close()">
</form>
</html>
Status: ASSIGNED → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → WORKSFORME
Comment hidden (Legacy TBPL/Treeherder Robot)
You need to log in before you can comment on or make changes to this bug.