Fabian Lange
063ca95f5f
Remove TryCatch in canvas fill
...
As verified by @Rob--W , the evenodd fill rule works correctly in all supported browsers. This now allows optimization by JS engines.
This fixes #5458
10 years ago
Fabian Lange
1d4758dadf
Disable Range Support for Chrome 39+40 ( #5512 )
...
Disabling Range Support for Chrome 39 and 40, due to regression in
Chromium. https://crbug.com/442318
10 years ago
Jonas Jenwald
65a5543efe
Disable PresentationMode for certain problematic configurations
...
Instead of trying to hack around various browser defects, let's just disable PresentationMode in the affected browsers. This patch:
- Disables PresentationMode in IE11+ when the viewer is embedded; fixes 4711.
10 years ago
Rob Wu
ac5a8bcdda
[l10n] Treat language as case-insensitive
...
See "Case-insensitive language comparisons per RFC 4646"
https://github.com/fabi1cazenave/webL10n/pull/51
Removed the "patch" in compatibility.js and fixed the bug in webL10n,
because the logic belongs to webL10n instead of PDF.js.
The immediate motivation for this patch is that Chrome 40 converts
navigator.language to lower case: https://crbug.com/454331
10 years ago
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
11 years ago
Tom De Wolf
a265861ba6
only convert in IE9 if the requested responseType is actually an arraybuffer, otherwise just return the responseText. That way the compatibility.js does not break other frameworks like angular that not always want an array from xhr requests.
11 years ago
Tim van der Meij
097bf41285
Use strict equalities in web/compatibility.js
11 years ago
Yury Delendik
561fc8f98b
Adds ImageData set support for legacy safari
11 years ago
Fabian Lange
54fb1f7226
Improving CanvasPixelArray polyfill for Android
11 years ago
Fabian Lange
9fd6cc7f1e
Fixes CanvasPixelArray set polyfill for chrome < 21 ( #4974 )
11 years ago
Yury Delendik
dccc709b50
Disables broken rAF on iOS
11 years ago
Samuel Chantaraud
952545e20f
Limit the size of canvases to 5MP (iOS restriction)
11 years ago
Yury Delendik
f9befa189b
Disables worker if XHR does not support arraybuffer
11 years ago
Yury Delendik
9c87fa24f7
Removes mozResponseArrayBuffer
11 years ago
Yury Delendik
34089212e0
Reverts mozRequestAnimationFrame to compatibility.js
11 years ago
Michał Gołębiowski
85291dd8da
Update web/compatibility.js
...
1) Remove obsolete workarounds
2) Add support comments
11 years ago
Tim van der Meij
53f3b1326a
Removes unused code from web/compatibility.js
11 years ago
Yury Delendik
c5eb058b09
Uses rAF to interrupt the operator list execution
11 years ago
Jonas Jenwald
8bb19fac2d
Catch error when the creation of localStorage polyfill fails in the generic viewer
11 years ago
Tim van der Meij
b348243866
Fixes lint warning W004 in /web
11 years ago
Yury Delendik
b39f0c311c
Refactors history and how the database is stored
11 years ago
Yury Delendik
cebf7836f4
Simulate support of the Int8Array for IE9
11 years ago
Manas (prometheansacrifice)
30e00bc573
Removing set-presence-in-ImageData check from canvas.js
11 years ago
Jonas Jenwald
665b862b7f
Fix coding style in web/compatibility.js
11 years ago
Samuel Chantaraud
cbc9ad3cb6
Correct formatting of locale to make it compatible with l10n (safari issue)
11 years ago
Mitar
628de8a1f4
Fix for bind compatibility implementation (polyfill).
...
Previously, reconstruction of arguments was incorrect if arguments contained
arrays. Arrays were added to arguments as their elements and not as a whole
array. It is enough to simply pass whole array to concat and it will be (only
one level deep) added to arguments.
In addition, we call slice on arguments for maximum compatibility (it is used
in Underscore.js library, with which I was comparing implementations while
debugging).
11 years ago
Yury Delendik
a8c11ad1e5
Introduces disableObjectCreateURL
11 years ago
Lu Wang
6553bd6c0c
add 'contains' for the classList implementation
12 years ago
Jonas
f61d272754
Disable range requests in old Android versions
12 years ago
Brendan Dahl
e9f5336cc9
Add atob polyfill. Remove uneeded data uri polyfill.
12 years ago
Rob Wu
b076cd1d6a
Always declare window.URL even if undefined
...
Otherwise it breaks feature detection,
"ReferenceError: Can't find variabl: URL" in Safari 5.1
12 years ago
Rob Wu
69a64d45bc
Put URL = URL || webkitURL in compatibility.js
...
Declares the URL variable globally. If the feature is not
supported, the variable will still be declared, but have the
"undefined" value.
Supported by:
- Firefox 4
Firefox 21 in Web worker
- Chrome 8 (prefixed as webkitURL), 23+ unprefixed
Chrome 10 (prefixed as webkitURL) in Web Worker, 23+ unprefixed
- Opera 15
Opera 15 in Web Worker
- Internet Explorer 10
Internet Explorer 11 in Web Worker
- Safari 6 (prefixed as webkitURL)
Safari 6 (prefixed as webkitURL) in Web Worker
12 years ago
benbro
74ee295812
Add IE 11 to the text/html data URI shim
12 years ago
Jonas
5c93ec3a2c
Check if the browser supports manipulation of the history
12 years ago
Yury Delendik
729e35079f
Disables range requestes for safari immediately
12 years ago
Yury Delendik
152e376971
Capturing disableRange set on capture phase of DOMContentLoaded event
12 years ago
Brendan Dahl
e6dadaadb8
Disable range request loading for safari.
12 years ago
vyv03354
385a5f7dcc
Add a console warning when JavaScript/AcroForm/XFA was found
12 years ago
Ofir
bf837cb524
Clone the array manually when slice is missing
12 years ago
Yury Delendik
81f8f92696
Adds web/* and test/* for jshint target
12 years ago
Yury Delendik
d1e017cc5e
Fixes console log methods for IE9
13 years ago
Yury Delendik
332cb20fcc
Fixes function declaration for strict mode
13 years ago
Yury Delendik
fc6b0e9bf2
Workaround for android gb browser bug
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
96c2f5c6ae
Simulate support of data URIs for IE10
13 years ago
Yury Delendik
5b583e596a
data.length optimization
13 years ago
Yury Delendik
b272cb7d1d
Using readAsArrayBuffer
13 years ago
Yury Delendik
c515bd2c52
Adds overrideMimeType for IE10
13 years ago
Tim de Koning
a30199527e
We should use feature detection. Thanks @brendandahl
13 years ago
Tim de Koning
44d0802700
We should use feature detection. Thanks @brendandahl
13 years ago