DescriptionPrevent implicit WebInputEvent construction from WebInputEvent::Type
All concrete WebInputEvent derivatives currently accept an unsigned size
parameter in the constructor, used to zero-initialize the object. This can
lead to unexpected runtime behavior, e.g., a WebInputEvent::Type value can
implicitly construct a WebInputEvent object. Prevent this by making the
size-accepting constructor protected for all types, and preventing naked
construction of a base WebInputEvent instance.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170708
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase #Patch Set 4 : Make private #
Total comments: 2
Patch Set 5 : Remove unncessary constructor guard #Messages
Total messages: 10 (0 generated)
|