Bug 246623

Summary: browser.commands: Empty browser action reference causes conflicts
Product: WebKit Reporter: Carlos J. <carlosj-webkit-bugzilla>
Component: WebKit ExtensionsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ap, timothy
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Carlos J. 2022-10-17 05:12:36 PDT
To provide users the ability for a keyboard shortcut to open extensions, you can define this in manifest: ``` "commands": { "_execute_browser_action": { "description": "Open extension popup" } }, ``` This doesn't set a keyboard shortcut yet allows the user to assign one. However, in iOS safari, when two extensions offer this functionality, the browser warns about it. See screenshot.

Sample extension can be found here:
https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/issues/safari-9633205-duplicate-empty-command-conflict
Comment 2 Alexey Proskuryakov 2022-10-17 10:20:07 PDT
This was fixed in Safari (not in WebKit) in iOS 16. Please reopen if this still reproduces for you.

rdar://83232949
Comment 3 Carlos J. 2022-10-18 06:23:53 PDT
Thanks! Good to know!