Skip to content

Add setting fields to control which browser versions to support #9937

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 8 commits into from
Dec 6, 2019

Conversation

juj
Copy link
Collaborator

@juj juj commented Dec 2, 2019

Add setting fields to control which browser versions to support, and apply it to experimental-webgl.

@juj juj force-pushed the remove_experimental_webgl_support branch from c84318b to 190573d Compare December 3, 2019 11:56
@juj
Copy link
Collaborator Author

juj commented Dec 3, 2019

Couple of fixes, and added a -s OLDEST_SUPPORTED_X_VERSION=-1 abstraction. How does that look like?

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Direction looks good, but I think we need a decision on our legacy support, as discussed in the other issue.

Specifically, I think by default we should not have 0 as the default for MIN. We should support only a reasonable amount of backwards compatibility by default, and not til the beginning of time. Users that do actually want support that far back can flip a flag.

Concretely, I'm suggesting:

  • The default values of MIN should be something reasonable that captures 99% or so of users total. So chrome can be 6 months ago from today, firefox should have the last supported ESR I guess, etc.
  • Add a section in emcc.py that checks if LEGACY_VM_SUPPORT is enabled, and sets the MIN versions to 0 if so.

@juj
Copy link
Collaborator Author

juj commented Dec 5, 2019

Sure - updated, how does that look?

@juj juj force-pushed the remove_experimental_webgl_support branch from 9d5e859 to fbd923d Compare December 5, 2019 18:46
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Please also mention in the LEGACY_VM_SUPPORT comment that it does this (the comment explains everything the option does),

// You can also configure the above options individually.

@juj juj merged commit c06c4af into emscripten-core:incoming Dec 6, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
…ripten-core#9937)

* Add setting fields to control which browser versions to support, and apply it to experimental-webgl.

* Remove Internet Explorer backwards compatibility when IE is not targeted.

* Remove infinity const

* Add support for -s OLDEST_SUPPORTED_X_VERSION=-1 and add a test

* OLDEST_SUPPORTED_ -> MIN_

* Remove MIN_IOS_SAFARI_VERSION, better to introduce it only when/if needed.

* Set default for browser version support

* Document LEGACY_VM_SUPPORT effect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants