Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: further avoid potential thread crashes #724

Merged
merged 2 commits into from
Sep 21, 2024

Conversation

ACTCD
Copy link
Collaborator

@ACTCD ACTCD commented Sep 21, 2024

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
1 check passed
@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