fix: further avoid potential thread crashes by ACTCD · Pull Request #724 · quoid/userscripts · GitHub
Skip to content

fix: further avoid potential thread crashes#724

Merged
ACTCD merged 2 commits into
mainfrom
fix/avoid-potential-thread-crashes
Sep 21, 2024
Merged

fix: further avoid potential thread crashes#724
ACTCD merged 2 commits into
mainfrom
fix/avoid-potential-thread-crashes

Conversation

@ACTCD

@ACTCD ACTCD commented Sep 21, 2024

Copy link
Copy Markdown
Collaborator

It seems that it is not enough to only determine the existence of URL.host. There are other cases that we are not aware of and continue to trigger Foundation URL.host(percentEncoded:) errors.

It looks like we should completely abandon the new URL.*(percentEncoded:) calls in the buggy versions and use the old properties that haven't been deprecated yet.

This Foundation bug should have been fixed somewhere between macOS 14.4-15.0 / iOS 17.0-18.0 versions.
So let's just raise the limit to the versions with the known fix.

The `URL.query(percentEncoded:)` calls still cause Foundation `URL.host(percentEncoded:)` error, this bug seems to be fixed in a certain version of macos 14.4-15.0, so just increase the limit to 15.0.
@ACTCD ACTCD requested a review from quoid September 21, 2024 03:41
@ACTCD ACTCD merged commit c38c3a3 into main Sep 21, 2024
@ACTCD ACTCD deleted the fix/avoid-potential-thread-crashes branch September 21, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants