Browse Source

PDF.js version 1.9.628 - See mozilla/pdf.js@460c4e38cc2cf62d692ccac7f8642c0fe6318b5d

pdfjsbot 7 years ago
parent
commit
355b4f3d1b

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.9.625",
+  "version": "1.9.628",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 8 - 8
build/pdf.combined.js

@@ -11364,7 +11364,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '1.9.625';
+  var apiVersion = '1.9.628';
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
   source.chunkedViewerLoading = !!pdfDataRangeTransport;
@@ -12668,8 +12668,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.9.625';
-  exports.build = build = 'e3873b29';
+  exports.version = version = '1.9.628';
+  exports.build = build = '460c4e38';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -29796,8 +29796,8 @@ exports.SVGGraphics = SVGGraphics;
 "use strict";
 
 
-var pdfjsVersion = '1.9.625';
-var pdfjsBuild = 'e3873b29';
+var pdfjsVersion = '1.9.628';
+var pdfjsBuild = '460c4e38';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
 var pdfjsDisplayAPI = __w_pdfjs_require__(54);
@@ -35658,8 +35658,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '1.9.625';
-  PDFJS.build = 'e3873b29';
+  PDFJS.version = '1.9.628';
+  PDFJS.build = '460c4e38';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -38616,7 +38616,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '1.9.625';
+    var workerVersion = '1.9.628';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

File diff suppressed because it is too large
+ 0 - 0
build/pdf.combined.js.map


+ 7 - 7
build/pdf.js

@@ -2969,7 +2969,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '1.9.625';
+  var apiVersion = '1.9.628';
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
   source.chunkedViewerLoading = !!pdfDataRangeTransport;
@@ -4360,8 +4360,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.9.625';
-  exports.build = build = 'e3873b29';
+  exports.version = version = '1.9.628';
+  exports.build = build = '460c4e38';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -7433,8 +7433,8 @@ exports.SVGGraphics = SVGGraphics;
 "use strict";
 
 
-var pdfjsVersion = '1.9.625';
-var pdfjsBuild = 'e3873b29';
+var pdfjsVersion = '1.9.628';
+var pdfjsBuild = '460c4e38';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(82);
 var pdfjsDisplayAPI = __w_pdfjs_require__(48);
@@ -13295,8 +13295,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '1.9.625';
-  PDFJS.build = 'e3873b29';
+  PDFJS.version = '1.9.628';
+  PDFJS.build = '460c4e38';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

File diff suppressed because it is too large
+ 0 - 0
build/pdf.js.map


File diff suppressed because it is too large
+ 0 - 0
build/pdf.min.js


+ 3 - 3
build/pdf.worker.js

@@ -24740,8 +24740,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
 "use strict";
 
 
-var pdfjsVersion = '1.9.625';
-var pdfjsBuild = 'e3873b29';
+var pdfjsVersion = '1.9.628';
+var pdfjsBuild = '460c4e38';
 var pdfjsCoreWorker = __w_pdfjs_require__(62);
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
 
@@ -24946,7 +24946,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '1.9.625';
+    var workerVersion = '1.9.628';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

File diff suppressed because it is too large
+ 0 - 0
build/pdf.worker.js.map


File diff suppressed because it is too large
+ 0 - 0
build/pdf.worker.min.js


+ 1 - 1
lib/core/worker.js

@@ -208,7 +208,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '1.9.625';
+    var workerVersion = '1.9.628';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

+ 3 - 3
lib/display/api.js

@@ -193,7 +193,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '1.9.625';
+  var apiVersion = '1.9.628';
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
   source.chunkedViewerLoading = !!pdfDataRangeTransport;
@@ -1584,8 +1584,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.9.625';
-  exports.build = build = 'e3873b29';
+  exports.version = version = '1.9.628';
+  exports.build = build = '460c4e38';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;

+ 2 - 2
lib/display/global.js

@@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '1.9.625';
-  PDFJS.build = 'e3873b29';
+  PDFJS.version = '1.9.628';
+  PDFJS.build = '460c4e38';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 2 - 2
lib/pdf.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.9.625';
-var pdfjsBuild = 'e3873b29';
+var pdfjsVersion = '1.9.628';
+var pdfjsBuild = '460c4e38';
 var pdfjsSharedUtil = require('./shared/util.js');
 var pdfjsDisplayGlobal = require('./display/global.js');
 var pdfjsDisplayAPI = require('./display/api.js');

+ 2 - 2
lib/pdf.worker.js

@@ -14,7 +14,7 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.9.625';
-var pdfjsBuild = 'e3873b29';
+var pdfjsVersion = '1.9.628';
+var pdfjsBuild = '460c4e38';
 var pdfjsCoreWorker = require('./core/worker.js');
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

+ 6 - 6
lib/web/pdf_history.js

@@ -96,7 +96,7 @@ var PDFHistory = function () {
       this._blockHashChange = 0;
       this._currentHash = getCurrentHash();
       this._numPositionUpdates = 0;
-      this._currentUid = this._uid = 0;
+      this._uid = this._maxUid = 0;
       this._destination = null;
       this._position = null;
       if (!this._isValidState(state) || resetHistory) {
@@ -199,7 +199,7 @@ var PDFHistory = function () {
         return;
       }
       var state = window.history.state;
-      if (this._isValidState(state) && state.uid < this._uid - 1) {
+      if (this._isValidState(state) && state.uid < this._maxUid) {
         window.history.forward();
       }
     }
@@ -211,13 +211,14 @@ var PDFHistory = function () {
       var shouldReplace = forceReplace || !this._destination;
       var newState = {
         fingerprint: this.fingerprint,
-        uid: shouldReplace ? this._currentUid : this._uid,
+        uid: shouldReplace ? this._uid : this._uid + 1,
         destination: destination
       };
       this._updateInternalState(destination, newState.uid);
       if (shouldReplace) {
         window.history.replaceState(newState, '', document.URL);
       } else {
+        this._maxUid = this._uid;
         window.history.pushState(newState, '', document.URL);
       }
     }
@@ -287,8 +288,7 @@ var PDFHistory = function () {
         delete destination.temporary;
       }
       this._destination = destination;
-      this._currentUid = uid;
-      this._uid = this._currentUid + 1;
+      this._uid = uid;
       this._numPositionUpdates = 0;
     }
   }, {
@@ -334,7 +334,7 @@ var PDFHistory = function () {
           hashChanged = this._currentHash !== newHash;
       this._currentHash = newHash;
       if (!state || false) {
-        this._currentUid = this._uid;
+        this._uid++;
 
         var _parseCurrentHash2 = parseCurrentHash(this.linkService),
             hash = _parseCurrentHash2.hash,

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.9.625",
+  "version": "1.9.628",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [

+ 6 - 6
web/pdf_viewer.js

@@ -3489,7 +3489,7 @@ var PDFHistory = function () {
       this._blockHashChange = 0;
       this._currentHash = getCurrentHash();
       this._numPositionUpdates = 0;
-      this._currentUid = this._uid = 0;
+      this._uid = this._maxUid = 0;
       this._destination = null;
       this._position = null;
       if (!this._isValidState(state) || resetHistory) {
@@ -3592,7 +3592,7 @@ var PDFHistory = function () {
         return;
       }
       var state = window.history.state;
-      if (this._isValidState(state) && state.uid < this._uid - 1) {
+      if (this._isValidState(state) && state.uid < this._maxUid) {
         window.history.forward();
       }
     }
@@ -3604,13 +3604,14 @@ var PDFHistory = function () {
       var shouldReplace = forceReplace || !this._destination;
       var newState = {
         fingerprint: this.fingerprint,
-        uid: shouldReplace ? this._currentUid : this._uid,
+        uid: shouldReplace ? this._uid : this._uid + 1,
         destination: destination
       };
       this._updateInternalState(destination, newState.uid);
       if (shouldReplace) {
         window.history.replaceState(newState, '', document.URL);
       } else {
+        this._maxUid = this._uid;
         window.history.pushState(newState, '', document.URL);
       }
     }
@@ -3680,8 +3681,7 @@ var PDFHistory = function () {
         delete destination.temporary;
       }
       this._destination = destination;
-      this._currentUid = uid;
-      this._uid = this._currentUid + 1;
+      this._uid = uid;
       this._numPositionUpdates = 0;
     }
   }, {
@@ -3727,7 +3727,7 @@ var PDFHistory = function () {
           hashChanged = this._currentHash !== newHash;
       this._currentHash = newHash;
       if (!state || false) {
-        this._currentUid = this._uid;
+        this._uid++;
 
         var _parseCurrentHash2 = parseCurrentHash(this.linkService),
             hash = _parseCurrentHash2.hash,

File diff suppressed because it is too large
+ 0 - 0
web/pdf_viewer.js.map


Some files were not shown because too many files changed in this diff