Skip to content

Remove/fix usage of MIN_SAFARI_VERSION #24423

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 28, 2025

We don't support targeting safari version older than 10.10.00 so two of these conditions were always true.

The third check was added in #21428 and looks to me like it was always wrong. The window.orientation API was added in safari 16.4 as the comment says so I updated the check to match. I'm not sure where the old value of 0x100400 came from or what it means.

@sbc100 sbc100 requested review from kripken and RReverser May 28, 2025 20:24
@sbc100
Copy link
Collaborator Author

sbc100 commented May 28, 2025

CC @cwoffenden who authors the check with the hex value.

We don't support targeting safari version older than 10.10.00 so two
of these conditions were always true.

The third check was added in emscripten-core#21428 and looks to me like it was always
wrong.  The window.orientation API was added in safari 16.4 as the
comment says so I updated the check to match.  I'm not sure where the
old value of 0x100400 came from or what it means.
@sbc100 sbc100 force-pushed the safari_versions branch from c923f61 to 2a77463 Compare May 28, 2025 20:40
@cwoffenden
Copy link
Contributor

CC @cwoffenden who authors the check with the hex value.

That is odd, but since it’s passed on the command-line it probably worked during testing. It should be 160400, at a glance.

@sbc100
Copy link
Collaborator Author

sbc100 commented May 28, 2025

CC @cwoffenden who authors the check with the hex value.

That is odd, but since it’s passed on the command-line it probably worked during testing. It should be 160400, at a glance.

Right, but presumably not 0x160400 which would be 1442816. Looks like some confusion somewhere (I hope).

@cwoffenden
Copy link
Contributor

Looks like some confusion somewhere (I hope).

The docs say MMmmVV (something like that, from memory), it’s pretty clear, I don’t know where I made up the hex from.

@sbc100 sbc100 merged commit f531731 into emscripten-core:main May 28, 2025
30 checks passed
@sbc100 sbc100 deleted the safari_versions branch May 28, 2025 23:02
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.

3 participants