-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Broken URL polyfill #9358
Comments
For reference, this part is already tracked in issue #8726. |
Sorry, I missed that one when searching for existing issues... feel free to close this then if its already got an open issue. |
No worries; #8726 only seem to concern the
The following checks are used to determine if a browser has native pdf.js/src/shared/compatibility.js Lines 189 to 207 in 5a52ee0
|
Safari seems to encode the % so
|
Fixed by #9868. |
The URL polyfill has a couple of issues:
I use pdf.js in an application and the URL web api in various places, on Safari this is broken because the polyfill from this library is used instead of native code (Safari >9 has full implementation i believe) or the other polyfill I include (this fails the check used in this library incorrectly).
Configuration:
Steps to reproduce the problem:
1.
2.
What is the expected behavior?
If a browser does not have native URL api support then an up to date polyfill is used. If a browser does have native URL api support then the polyfill is not used.
What went wrong?
A browser with native URL api support was forced to use the broken URL polyfill from pdf.js
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
n/a
The text was updated successfully, but these errors were encountered: