Only support the standard, unprefixed, Fullscreen API in the default viewer #14606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At this point in time, after recent rounds of clean-up, the
webkit
-prefixed Fullscreen API is the only remaining browser-specific compatibility hack in theweb/
-folder JavaScript code.The standard, and thus unprefixed, Fullscreen API has been supported for over three years in both Mozilla Firefox and Google Chrome. According to MDN, the unprefixed Fullscreen API has been available since:
Hence only Safari now requires using a prefixed Fullscreen API, and it's thus (significantly) lagging behind other browsers in this regard.
Considering that the default viewer is written specifically to be the UI for the Firefox PDF Viewer, and that we ask users to not just use it as-is[1], I think that we should only support the standard Fullscreen API now.
Furthermore, note also that the FAQ already lists Safari as "Mostly" supported; see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support
[1] Note e.g. http://mozilla.github.io/pdf.js/getting_started/#introduction