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] Update minimum supported browser versions (PR 13361 follow-up) #13379

Merged
merged 1 commit into from
May 15, 2021

Commits on May 15, 2021

  1. [api-minor] Update minimum supported browser versions (PR 13361 follo…

    …w-up)
    
    With the changes in PR 13361, we're now using the `CanvasPattern.setTransform()` method when rendering certain Shadings/Patterns.
    Note that while `CanvasPattern` itself has been supported since basically "forever", its `setTransform` method is a slightly newer addition to the specification; please refer to https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern#browser_compatibility
    
    Rather than trying to re-write PR 13361 to not use, or possibly spending time/effort (if possible) polyfilling, `CanvasPattern.setTransform()` this patch thus suggests that we simply update the *minimum* supported browser versions instead.
    
    According to the compatibility data linked above, the *minimum* supported browser versions in the PDF.js library are now as follows:
     - Chrome >= 68, which was released on 2018-07-24.[1]
     - Firefox ESR, see https://wiki.mozilla.org/Release_Management/Calendar.
     - Safari >= 11.1, which was release on 2018-03-29.[2]
    
    (Given that the PDF.js contributors cannot realistically test a bunch of old browsers, it's not unimaginable that some older browser versions are already not working with the PDF.js library.)
    
    Based on these changes, which we should ensure are reflected in the Wiki as well, we can also remove a number of now redundant polyfills. Furthermore we'll no longer "claim" to support Windows XP, note the `gulpfile.js` changes, which should definitely *not* be an issue given that it's no longer officially supported.[3]
    
    ---
    [1] According to https://en.wikipedia.org/wiki/Google_Chrome_version_history
    
    [2] According to https://en.wikipedia.org/wiki/Safari_version_history#Safari_11
    
    [3] According to https://en.wikipedia.org/wiki/Windows_XP#End_of_support
    Snuffleupagus committed May 15, 2021
    Configuration menu
    Copy the full SHA
    bb8e15c View commit details
    Browse the repository at this point in the history