Chromium Code Reviews
DescriptionPrevent TouchEvent Crash on X
When TouchEvents are copied the base::NativeEvent of the copy is set as null for
GenericEvent types, such as touchs.
Touch Release and Cancel events are set to remove a native touch id mapping upon
destruction.
This causes copied Touch Release/Cancel events to attempt to remove a mapping on
a null native event. Leading to a crash.
I've explicitly defined a copy constructor on TouchEvent to stop copied events
from attempting to remove this mapping.
TEST=EventsXTest.CopiedTouchEventNotRemovingFromNativeMapping
BUG=467102
Committed: https://crrev.com/5444194bd4e2f4dda4725169b879af6077dd240a
Cr-Commit-Position: refs/heads/master@{#321563}
Patch Set 1 : #
Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||||||||||||||||||||