I was curious how safari handles extensions so I starting looking around. Not sure if any of this info is helpful:
A modern "Safari app extension" has several parts, including the following:
An app, distributed as an .app bundle. The app contains native Mac executable code inside the Contents/MacOS folder of its bundle.
An app extension, distributed as an .appex bundle inside the Contents/PlugIns folder of the .app bundle. The app extension also contains native Mac executable code in the Contents/MacOS folder of its bundle.
It looks like the only extension data that safari store is in
~/Library/Containers/com.apple.Safari/Data/Library/Safari/AppExtensions/Extensions.plist which stores enabled status, allowed domains, etc.
All extensions are read from the individual host app that wraps the safari extension
.appex. Looking at what files safari access It looks like it access the extensions using the Mac binary file in
XXX.appex/Contents/MacOS/XXX rather than its resources folder that contains all the js/html.
Since it's calling Mac binary I'm not sure how safari is loading in its data and it might not be possible to load them into Orion. I haven't seen another browser not made by apple attempt such a thing. There is a Mac binary reader on GitHub that might provide some clues but I have get to look into it.
There is also a tool in Xcode for converting Web Extension to safari. I haven't look into it much but it might provide some clues on how safari interacts with extensions.