Closed
Bug 224741
Opened 21 years ago
Closed 19 years ago
unload evt.originalTarget == null when closing document's parent tab
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: WeirdAl, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
application/vnd.mozilla.xul+xml
|
Details |
I've run into a strange situation. When I set an unload event listener on a
document's defaultView, and then close the tab containing the document or the
entire window, the original target of the event === null.
Bug 111411 comment 12 has a DOM Inspector-based testcase; I'm looking for help
in creating a standalone testcase to demonstrate the same. I'm also looking for
help figuring out why the originalTarget turns out to be null.
Comment 1•21 years ago
|
||
Chances are, the event is firing after the prescontext has been torn down, so
that the content viewer's mPresContext is null.... That would be the place to
start looking, at least.
Reporter | ||
Comment 2•21 years ago
|
||
Comment 3•19 years ago
|
||
Not sure if this is still valid, but 234455 makes sure that .originalTarget
is *always* set.
Depends on: 234455
Comment 4•19 years ago
|
||
Alex, could you test this now. I think it should be fixed.
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•