Closed Bug 1536351 Opened 6 years ago Closed 6 years ago

PresShell::EventHandler::HandleEvent() should push current event target info before it calls HandleEventWithCurrentEventInfo()

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/7abb9117c8500ed20833746c9f8e800fce3a4688/layout/base/PresShell.cpp#6525-6529

Oddly, when PresShell::EventHandler::HandleEvent() sets mPresShell->mCurrentEventFrame to nullptr before HandleEventWithCurrentEventInfo() without pushing event target info when there is no event target frame and the event does not require it.

Priority: -- → P3

Oddly, when there is no frame and the handling event does not require a frame,
PresShell::EventHandler::HandleEvent() just clears
mPresShell->mCurrentEventFrame with nullptr before calling
HandleEventWithCurrentEventInfo(). This means that if event handler is
nested, old mPresShell->mCurrentEventContent is reused and
mPresShell->mCurrentEventFrame is forgotten. Therefore, it should push
nullptr as current event info instead.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/329f1d3e2e5a Make PresShell::EventHandler::HandleEvent() push current event info as nullptr before calling HandleEventWithCurrentEventInfo() r=smaug
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: