Bug 259656

Summary: Host permissions requested with permissions.request lost after browser restart
Product: WebKit Reporter: OlegWock <olegwock>
Component: WebKit ExtensionsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, marcosc, sihui_liu, timothy, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   

Description OlegWock 2023-07-31 12:18:04 PDT
After extension was granted host permission requested with `browser.permissions.request`, everything works as expected, but after browser restart those permissions are lost. This affects both manifest v2 and v3 extension. API permissions (like `tabs`) work as expected and are persisted between browser restarts

Minimal extension with reproduction: https://github.com/OlegWock/webkit-webext-bug-repro (all related code located in extension's popup)
Comment 1 Radar WebKit Bug Importer 2023-08-07 12:19:14 PDT
<rdar://problem/113515767>