Skip to content

Commit

Permalink
Disable Range Support for Chrome 39+40 (mozilla#5512)
Browse files Browse the repository at this point in the history
Disabling Range Support for Chrome 39 and 40, due to regression in
Chromium. https://crbug.com/442318
  • Loading branch information
CodingFabian committed Apr 29, 2015
1 parent 6e66e30 commit 1d4758d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d4758d

Please sign in to comment.