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

Avoid errors if vendor-prefixed APIs do not exist (fix #2437) #2438

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

Herschel
Copy link
Contributor

Avoid errors in the generated vendor-prefix code if neither the
standard API nor the vendor-prefixed API exists. Instead, fall back
to undefined, which will give the Rust module a chance to run and
handle the error when it tries to use the API.

Fixes #2437.

@alexcrichton
Copy link
Contributor

Seems reasonable to me, thanks! Could you be sure to add a test for this as well?

@Herschel Herschel force-pushed the issue-2437 branch 2 times, most recently from 0b20a68 to b6ee9e4 Compare January 29, 2021 21:31
@Herschel
Copy link
Contributor Author

Done!

Avoid errors in the generated vendor-prefix code if neither the
standard API nor the vendor-prefixed API exists. Instead, fall back
to undefined, which will give the Rust module a chance to run and
handle the error when it tries to use the API.
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.

ReferenceError in Tor browser when AudioContext doesn't exist
2 participants