Hi all,
Has anyone had success with MV3 extensions in Safari 18.1?
I'm trying to convert my MV2 Safari extension to MV3.
When I use MV2, I can debug the background script by going to this menu: Develop -> Web Extension Background Content. It works as expected.
However, when I switch the manifest to V3 (including specifying a background service_worker instead of a background script), there is only a single grayed-out option named "No Web Extension Background Content".
Occasionally, the contents of that menu does include an entry for the Safari profile I'm not currently in, and indicates it there is a service worker for my extension in that profile which is "not loaded" (my extension is installed and works in both profiles). However, this service worker menu option only appears rarely, and I can't figure out why it only appears sometimes.
I know the background service worker must be available and can be run, since the extension has an internal web page that can successfully pass messages to the service worker and get a response from it (using chrome.runtime.sendMessage).
Has anyone else had any success debugging MV3 service workers in Safari 18.1?
Thanks