From ce50370d86040c4e58241e862b88e794e02d4ffc Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 30 Apr 2015 21:32:53 +0100 Subject: [PATCH] PDF.js version 1.1.107 --- bower.json | 2 +- build/pdf.combined.js | 4 ++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/compatibility.js | 5 ++++- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/bower.json b/bower.json index 4c07dda27..c608d4a1b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.105", + "version": "1.1.107", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index c85dda710..a2b981d7d 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.105'; -PDFJS.build = '6f3024f'; +PDFJS.version = '1.1.107'; +PDFJS.build = '12be47c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index 12181db32..e9ff03c7e 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.105'; -PDFJS.build = '6f3024f'; +PDFJS.version = '1.1.107'; +PDFJS.build = '12be47c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index d91188f48..691aadc3f 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.105'; -PDFJS.build = '6f3024f'; +PDFJS.version = '1.1.107'; +PDFJS.build = '12be47c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 28e8a07b5..c7cab9f85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.105", + "version": "1.1.107", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/compatibility.js b/web/compatibility.js index 00429dded..06f54bff0 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -469,7 +469,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; }