[Pkg-javascript-commits] [pdf.js] 104/119: Disable Range Support for Chrome 39+40 (#5512)
David Prévot
taffit at moszumanska.debian.org
Wed May 13 21:27:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 1d4758dadf13fe2f24fa21dcc95f91b62a98aa74
Author: Fabian Lange <lange.fabian at gmail.com>
Date: Tue Dec 30 12:31:40 2014 +0100
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
---
web/compatibility.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/compatibility.js b/web/compatibility.js
index 967e312..fa42ecc 100644
--- a/web/compatibility.js
+++ b/web/compatibility.js
@@ -479,7 +479,10 @@ if (typeof PDFJS === 'undefined') {
var regex = /Android\s[0-2][^\d]/;
var isOldAndroid = regex.test(navigator.userAgent);
- if (isSafari || isOldAndroid) {
+ // Range requests are broken in Chrome 39 and 40, https://crbug.com/442318
+ var isChromeWithRangeBug = /Chrome\/(39|40)\./.test(navigator.userAgent);
+
+ if (isSafari || isOldAndroid || isChromeWithRangeBug) {
PDFJS.disableRange = true;
PDFJS.disableStream = true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list