[webkit-changes] [WebKit/WebKit] b521ef: Use dynamicDowncast<MouseEvent> in NavigationAction
Anne van Kesteren
noreply at github.com
Wed Feb 28 09:05:53 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b521ef5df5cfd6ccc54b34ffbae697905a209455
https://github.com/WebKit/WebKit/commit/b521ef5df5cfd6ccc54b34ffbae697905a209455
Author: Anne van Kesteren <annevk at annevk.nl>
Date: 2024-02-28 (Wed, 28 Feb 2024)
Changed paths:
M Source/WebCore/dom/EventContext.cpp
M Source/WebCore/dom/EventDispatcher.cpp
M Source/WebCore/loader/NavigationAction.cpp
Log Message:
-----------
Use dynamicDowncast<MouseEvent> in NavigationAction
https://bugs.webkit.org/show_bug.cgi?id=270227
Reviewed by Chris Dumez.
For security & performance.
In EventContext we move up some of the boolean conditions up such that
there should be less downcasting during event dispatch.
* Source/WebCore/dom/EventContext.cpp:
(WebCore::EventContext::handleLocalEvents const):
* Source/WebCore/dom/EventDispatcher.cpp:
(WebCore::EventDispatcher::dispatchEvent):
* Source/WebCore/loader/NavigationAction.cpp:
(WebCore::mouseEventDataForFirstMouseEvent):
Canonical link: https://commits.webkit.org/275450@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list