
When XKit Rewritten (https://github.com/AprilSylph/XKit-Rewritten) is run on iOS Orion on tumblr.com and any of its functions are enabled, its helper code does not load and no extension functionality is executed. This appears to be because a script element created by the extension (which is executed in the "main" execution world, outside of the "isolated" extension sandbox*) cannot use dynamic import to import a script file in the extension package.
This is specific to Orion iOS; desktop Orion, desktop Safari, and mobile Safari (last time I checked) do not have this problem.
The relevant code is here:
https://github.com/AprilSylph/XKit-Rewritten/blob/01fe042bac00fb5c6d1a3f0a4abd9c1ab45c6fe3/src/content_scripts/main.js#L100-L108
https://github.com/AprilSylph/XKit-Rewritten/blob/01fe042bac00fb5c6d1a3f0a4abd9c1ab45c6fe3/src/main_world/index.js#L16
*Based on the bugs I have encountered, I assume iOS Orion might not actually have this distinction, but I haven't played around with it to find out. Is the extension code just executed in the page context with javascript helper functions that simulate extension APIs, or does webkit actually give you access to the native extension stuff?
The extension functions identically in iOS Orion the same way it does in desktop Orion.
1.3.13
18