Closed
Bug 21524
Opened 25 years ago
Closed 24 years ago
window.closed incorrectly reported if window closed manually
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
M17
People
(Reporter: puptank, Assigned: joki)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
401 bytes,
text/html
|
Details |
Overview: Say I use JavaScript to open a popup called myWin. If I close it with myWin.window.close(), myWin.closed returns true. If I close it manually (ie. using the window close gadget), myWin.closed does not return true. (I assume this is a bug.) Test page: http://homepages.ihug.co.nz/~trmusson/test/winclosed.html Build ID: 1999111520
Updated•25 years ago
|
Assignee: mccabe → joki
Component: Javascript Engine → Event Handling
Comment 1•25 years ago
|
||
Good testcase! Thanks for the concise bug report. I'm not sure who to forward this to... tentatively reassigning it to event handling. The DOM functions are right, but somebody implementing the window close event isn't letting the DOM know about it.
Comment 2•25 years ago
|
||
I am not sure I understand this bug as it sits. From reviewing the JavaScript I can't see where myWin.closed would be called when it is manually closed. If you could insert a JS "alert" call where something is being called in when the window closes manually and this works on 4.x and not in mozilla then I will have something I can test. (Also, keep mind that when you test in mozilla the alert will beep but a dialog will not show, so you can use "dump" instead, and look at the console window)
See bug 18301.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M14
Reporter | ||
Comment 4•25 years ago
|
||
Reporter | ||
Updated•25 years ago
|
Whiteboard: [TESTCASE]
Reporter | ||
Comment 5•25 years ago
|
||
The bug is fixed in my copy of milestone 12 (BuildID: 1999122023).
Updated•25 years ago
|
Summary: [4.xP] window .closed incorrectly reported if window closed manually → [4.xP] window.closed incorrectly reported if window closed manually
Target Milestone: M14 → M17
Comment 6•25 years ago
|
||
Moving M17.
Comment 7•25 years ago
|
||
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Updated•25 years ago
|
Summary: [4.xP] window.closed incorrectly reported if window closed manually → window.closed incorrectly reported if window closed manually
Whiteboard: [TESTCASE]
Assignee | ||
Comment 9•24 years ago
|
||
Seems to work okay for me as well. Marking WORKSFORME.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•