Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 6beca5c560d6e40e255246513618dce1f3281028 https://github.com/WebKit/WebKit/commit/6beca5c560d6e40e255246513618dce1f3281028 Author: Alex Christensen <achristen...@apple.com> Date: 2025-08-08 (Fri, 08 Aug 2025)
Changed paths: M Source/WebKit/UIProcess/API/Cocoa/WKUserContentController.mm M Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp M Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp M Source/WebKit/UIProcess/Inspector/socket/RemoteInspectorProtocolHandler.cpp M Source/WebKit/UIProcess/UserContent/WebScriptMessageHandler.h M Source/WebKit/UIProcess/UserContent/WebUserContentControllerProxy.cpp Log Message: ----------- Simplify WebScriptMessageHandler::Client https://bugs.webkit.org/show_bug.cgi?id=297133 rdar://157869992 Reviewed by Brady Eidson. Instead of asking the client if it wants a completion handler or not then making one of two very similar calls, just give the client the completion handler and let it decide when to call it. This reduces duplicate code and simplifies the future addition of more clients. * Source/WebKit/UIProcess/API/Cocoa/WKUserContentController.mm: * Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp: * Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp: * Source/WebKit/UIProcess/Inspector/socket/RemoteInspectorProtocolHandler.cpp: * Source/WebKit/UIProcess/UserContent/WebScriptMessageHandler.h: * Source/WebKit/UIProcess/UserContent/WebUserContentControllerProxy.cpp: (WebKit::WebUserContentControllerProxy::didPostMessage): Canonical link: https://commits.webkit.org/298412@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes