Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b6b9714f5ecd35f819fb120cc84e3725aac307ab
https://github.com/WebKit/WebKit/commit/b6b9714f5ecd35f819fb120cc84e3725aac307ab
Author: Jessica Cheung <[email protected]>
Date: 2026-06-11 (Thu, 11 Jun 2026)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKMenuItemIdentifiers.mm
M Source/WebKit/UIProcess/API/Cocoa/WKMenuItemIdentifiersPrivate.h
M Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/ContextMenuTests.mm
Log Message:
-----------
Substitutions menu item does not have identifier
https://bugs.webkit.org/show_bug.cgi?id=316927
rdar://178186993
Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.
Add an identifier for substitutions menu item so clients can identify
and manipulate it. Extend the support for substitutions submenu items.
Add an API test that mirrors the spelling menu item test, only in this
case it uses the substitutions menu identifier.
* Source/WebKit/UIProcess/API/Cocoa/WKMenuItemIdentifiers.mm:
* Source/WebKit/UIProcess/API/Cocoa/WKMenuItemIdentifiersPrivate.h:
* Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::menuItemIdentifier):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/ContextMenuTests.mm:
(TestWebKitAPI::TEST(ContextMenuTests, ProposedMenuContainsSubstitutionsMenu)):
Canonical link: https://commits.webkit.org/315060@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications