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)

x86
Windows 95
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: puptank, Assigned: joki)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

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
Assignee: mccabe → joki
Component: Javascript Engine → Event Handling
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.
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)
Target Milestone: M14
Whiteboard: [TESTCASE]
The bug is fixed in my copy of milestone 12 (BuildID: 1999122023).
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
Moving M17.
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Setting the keyword all open [4.xp] bugs to 4xp.
Keywords: 4xp
Summary: [4.xP] window.closed incorrectly reported if window closed manually → window.closed incorrectly reported if window closed manually
Whiteboard: [TESTCASE]
Seems to work okay for me as well.  Marking WORKSFORME.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Verified 200092808
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: