I'm surprised to see native code in a web extension.
Safari doesn’t use the same extension architecture as Chrome and Firefox.
https://developer.apple.com/documentation/SafariServices/saf...
Thats true, but in the end the web extension itself can work with all browsers (if the apis are implemented of course). AutoPiP for example would work without any modifications in chrome/firefox but they implement their own PiP api so it doesn't activate the macOS native one...