Closed Bug 224741 Opened 21 years ago Closed 18 years ago

unload evt.originalTarget == null when closing document's parent tab

Categories

(Core :: DOM: Events, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: WeirdAl, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

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.
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.
Keywords: testcase
Not sure if this is still valid, but 234455 makes sure that .originalTarget
is *always* set.
Depends on: 234455
Alex, could you test this now. I think it should be fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: