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

Remove the requestAnimationFrame polyfill #9138

Merged
merged 1 commit into from
Nov 15, 2017
Merged

Remove the requestAnimationFrame polyfill #9138

merged 1 commit into from
Nov 15, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

According to https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#Browser_compatibility and https://caniuse.com/#feat=requestanimationframe, the browsers we intend to support with PDF.js version 2.0 should all have native requestAnimationFrame support.

Note that the reason for indiscriminately polyfilling requestAnimationFrame in iOS, see PR #4961, was apparently because of a bug in iOS 6.
However, according to Wikipedia: "Support for iOS 8 ended in 2017.", hence the lowest version currently supported is iOS 9.

@yurydelendik Are you OK with simply removing this now?

According to https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame#Browser_compatibility and https://caniuse.com/#feat=requestanimationframe, the browsers we intend to support with PDF.js version 2.0 should all have native `requestAnimationFrame` support.

Note that the reason for indiscriminately polyfilling `requestAnimationFrame` in iOS, see PR 4961, was apparently because of a bug in iOS 6.
However, according to [Wikipedia](https://en.wikipedia.org/wiki/IOS_version_history#iOS_8): "Support for iOS 8 ended in 2017.", hence the lowest version currently supported is iOS 9.
@yurydelendik yurydelendik merged commit e162df5 into mozilla:master Nov 15, 2017
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@Snuffleupagus Snuffleupagus deleted the rm-requestAnimationFrame-polyfill branch November 15, 2017 18:38
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…nFrame-polyfill

Remove the `requestAnimationFrame` polyfill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants