katagaki / Unagent

User agent changer for Safari
28 stars 7 forks source link

Error in Safari 18 #23

Closed axiel7 closed 1 month ago

axiel7 commented 3 months ago

I know Safari 18 is still in beta, but the extension doesn't load with the error Unable to parse declarativeNetRequest rules because of an unexpected error.

Screenshot 2024-06-18 at 12 27 58
katagaki commented 3 months ago

Hi @axiel7 !

Thank you for reporting this issue.

I've been able to reproduce this on an iOS 18 device, and will be working to try to resolve it.

katagaki commented 3 months ago

Hi @axiel7 !

Just an update on this issue, it seems like in iOS 18 Developer Beta 2, the extension is not working at all, with the same error you provided shown in Settings > Apps > Safari > Extensions > Unagent. If the issue is not resolved in iOS 18 Developer Beta 3, I will reach out to Apple to ask for support.

katagaki commented 1 month ago

This seems to be caused by commit https://github.com/katagaki/Unagent/commit/bc1c88167bfe78d91182b64cea1bf830033d6bc7 .

The resource type list has been tweaked in accordance to Apple's documentation:

Safari supports main_frame, sub_frame, stylesheet, script, image, font, xmlhttprequest, ping, media, websocket, and other.

It should be fixed when building commit https://github.com/katagaki/Unagent/commit/a976976ac176ef54a52c3b30b902ced25b0dfede .

This fix will be released in Unagent 1.3.