Bug 276573

Summary: browser action onClicked works only once per launch of Mobile Safari
Product: WebKit Reporter: Jeff Johnson <opendarwin>
Component: WebKit ExtensionsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
Attachments:
Description Flags
Sample Xcode project demonstrating the bug none

Jeff Johnson
Reported 2024-07-13 12:29:39 PDT
Created attachment 471880 [details] Sample Xcode project demonstrating the bug On iOS 17.5.1 and iOS 18 beta 3, the extension API browser action onClicked works only once per launch of Safari. This bug does not occur on macOS. The attached sample Xcode project is a Safari extension that simply opens a new tab with https://example.org every time you click the extension toolbar icon. Steps to reproduce: 1) Build and run the OnClickBug extension on iOS 2) Enable the OnClickBug extension 3) Open https://webkit.org in Safari 4) Open the Manage Extensions menu in Safari 5) Click OnClickBug 6) Close the new tab 7) Open the Manage Extensions menu again 8) Click OnClickBug again This bug totally breaks my Safari extension Homecoming for Mastodon in the App Store: https://apps.apple.com/app/homecoming-for-mastodon/id1666139593 The sample project is Manifest V2, while Homecoming is Manifest V3, so they each use the slightly different browser action API, but it makes no difference. The bug affects both MV2 and MV3.
Attachments
Sample Xcode project demonstrating the bug (331.48 KB, application/zip)
2024-07-13 12:29 PDT, Jeff Johnson
no flags
Radar WebKit Bug Importer
Comment 1 2024-07-13 12:29:48 PDT
Timothy Hatcher
Comment 2 2024-08-07 10:57:31 PDT
A fix for this was released in iOS 17.6.1.
Timothy Hatcher
Comment 3 2024-10-30 12:30:54 PDT
A follow up is tracked with bug 282346.
Note You need to log in before you can comment on or make changes to this bug.