Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4635a5d12b4bcaf0c05d88c9e22ee9f408f09ac6
https://github.com/WebKit/WebKit/commit/4635a5d12b4bcaf0c05d88c9e22ee9f408f09ac6
Author: Anne van Kesteren <[email protected]>
Date: 2025-05-31 (Sat, 31 May 2025)
Changed paths:
M Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
M Source/WebCore/Modules/gamepad/NavigatorGamepad.h
M Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
M Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
M Source/WebCore/page/Navigator.cpp
M Source/WebCore/page/WorkerNavigator.cpp
Log Message:
-----------
WorkerNavigator::gpu() can only be invoked from a worker
https://bugs.webkit.org/show_bug.cgi?id=293800
Reviewed by Mike Wyrzykowski.
* Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp:
(WebCore::NavigatorGamepad::protectedNavigator const): Deleted.
This method is unneeded as we can const m_navigator instead.
* Source/WebCore/page/Navigator.cpp:
Apply https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines
* Source/WebCore/page/WorkerNavigator.cpp:
(WebCore::WorkerNavigator::gpu):
As this method can only be invoked from a worker, it does not make
sense for it to implement logic for documents.
(WebCore::WorkerNavigator::setAppBadge):
Adopt dynamicDowncast<> and RefPtr.
Canonical link: https://commits.webkit.org/295642@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