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

[api-minor] Only support browsers/environments that have *basic* support for Promise natively #12331

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#Browser_compatibility and https://caniuse.com/#feat=promises, all even remotely modern browsers already support basic Promise functionality natively.

The only reason for keeping the Promise polyfill (at all) is to be able to support recent additions to the specification, such as e.g. finally and allSettled.
Note that this patch will, on its own, remove support for IE 11/Edge (non-Chromium based) in both the general PDF.js library and the default viewer.

…ort for `Promise` natively

Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#Browser_compatibility and https://caniuse.com/#feat=promises, all even remotely modern browsers already support *basic* `Promise` functionality natively.

The only reason for keeping the `Promise` polyfill (at all) is to be able to support recent additions to the specification, such as e.g. `finally` and `allSettled`.
Note that this patch will, on its own, remove support for IE 11/Edge (non-Chromium based) in both the general PDF.js library and the default viewer.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2020

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/7521e5e617fea7c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2020

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/2d9c7e44fe747c1/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/2d9c7e44fe747c1/output.txt

Total script time: 3.85 mins

  • Unit Tests: FAILED

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2020

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/7521e5e617fea7c/output.txt

Total script time: 4.88 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 50958c4 into mozilla:master Sep 6, 2020
@timvandermeij
Copy link
Contributor

Looks good; thanks!

@Snuffleupagus Snuffleupagus deleted the Promise-polyfill branch September 6, 2020 12:21
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.

3 participants