Bug 1433810 - Update pdf.js to version 2.0.303. r=bdahl

--HG--
extra : rebase_source : d1d477a8a5e45be69a6361b0fad49028f0fdc7a9
This commit is contained in:
Ryan VanderMeulen 2018-01-28 16:54:07 -05:00
parent 6a22f05a91
commit 9817997470
3 changed files with 1193 additions and 653 deletions

View File

@ -1,5 +1,5 @@
This is the PDF.js project output, https://github.com/mozilla/pdf.js
Current extension version is: 2.0.288
Current extension version is: 2.0.303
Taken from upstream commit: f0216484
Taken from upstream commit: 55e3f97a

View File

@ -1718,9 +1718,6 @@ function isExternalLinkTargetSet() {
class StatTimer {
constructor(enable = true) {
this.enabled = !!enable;
this.reset();
}
reset() {
this.started = Object.create(null);
this.times = [];
}
@ -1769,7 +1766,6 @@ class DummyStatTimer {
constructor() {
(0, _util.unreachable)('Cannot initialize DummyStatTimer.');
}
static reset() {}
static time(name) {}
static timeEnd(name) {}
static toString() {
@ -1932,7 +1928,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
let apiVersion = '2.0.288';
let apiVersion = '2.0.303';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -2319,8 +2315,8 @@ var PDFPageProxy = function PDFPageProxyClosure() {
}, this);
this.objs.clear();
this.annotationsPromise = null;
if (resetStats) {
this._stats.reset();
if (resetStats && this._stats instanceof _dom_utils.StatTimer) {
this._stats = new _dom_utils.StatTimer();
}
this.pendingCleanup = false;
},
@ -3227,8 +3223,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.288';
exports.build = build = 'f0216484';
exports.version = version = '2.0.303';
exports.build = build = '55e3f97a';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -4621,8 +4617,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.288';
var pdfjsBuild = 'f0216484';
var pdfjsVersion = '2.0.303';
var pdfjsBuild = '55e3f97a';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(12);
var pdfjsDisplayAPI = __w_pdfjs_require__(3);
@ -7744,8 +7740,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.288';
PDFJS.build = 'f0216484';
PDFJS.version = '2.0.303';
PDFJS.build = '55e3f97a';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

File diff suppressed because it is too large Load Diff