Open alexanderatallah opened 1 year ago
This will likely be blocked by either:
https://github.com/PlasmoHQ/plasmo/issues/521
Or Plasmo should just spit out the safari bundle <- I will investigate this.
Popups and stuffs are good to go on Safari. The BGSW tho has some problems - I suspects some API incompatibility.
I think it's impossible to debug Safari Service Worker lol - it shows only "Service Worker failed to load"...
Blocker for older Safari:
scripting registerContentScripts, getRegisteredContentScripts, unregisterContentScripts, updateContentScripts supported in Safari 16.4 or later.
The mainworld script injection requires the above APIs.
Some other refs:
It works!
Key requirement is latest MacOS Ventura 13.3.1 (22E261) with Safari 16.4
A patch on Plasmo side is needed to fix up some undefined lookup, will PR in a bit.
This is awesome 🔥
I'll need to update my system to 16.4 before I can test (we'll want to check mobile Safari support too). But this is going to be even more amazing once people have a nice way of sharing credentials between desktop and mobile, coming soon
core/extension.ts
should prob be the only place with Safari-specific code - the rest of the extension shouldn't care about the platform.This will allow iOS users to use window apps!