Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 12e5d7dd7b78eea570a7b82ae514aa6164762c2d
https://github.com/WebKit/WebKit/commit/12e5d7dd7b78eea570a7b82ae514aa6164762c2d
Author: Anne van Kesteren <[email protected]>
Date: 2025-04-28 (Mon, 28 Apr 2025)
Changed paths:
M Source/WebCore/page/EventHandler.cpp
M Source/WebKit/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations
M
Source/WebKit/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
M Source/WebKit/Shared/WebEvent.h
M Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp
Log Message:
-----------
Reduce unsafeness in WebKit/WebProcess/WebPage/EventDispatcher.cpp
https://bugs.webkit.org/show_bug.cgi?id=291936
Reviewed by Abrar Rahman Protyasha and Wenson Hsieh.
As per https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines
* Source/WebKit/Shared/WebEvent.h:
As need to create a CheckedRef on a different thread, use
CanMakeThreadSafeCheckedPtr.
* Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp:
(WebKit::EventDispatcher::internalWheelEvent):
(WebKit::EventDispatcher::dispatchWheelEventViaMainThread):
As it's unclear how WebWheelEvent is kept alive today, we copy it.
Canonical link: https://commits.webkit.org/294180@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes