Bug 249411

Summary: `browser` namespace is undefined for extension service workers in WebKit.
Product: WebKit Reporter: Kiara Rose <kiara_rose>
Component: WebKit ExtensionsAssignee: Timothy Hatcher <timothy>
Status: NEW ---    
Severity: Normal CC: timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Kiara Rose 2022-12-15 10:36:29 PST
`browser` namespace is undefined for extension service workers in WebKit. Received this error when trying to load a test extension in WebKit using a service worker. 

"ServiceWorkerContainer::jobFailedWithException: Job 7 failed with error ReferenceError: Can't find variable: browser".

We should also add a WebKit test for service workers.
Comment 1 Radar WebKit Bug Importer 2022-12-22 10:37:34 PST
<rdar://problem/103642820>