Bug 1563814 - Update pdf.js to version 2.2.224. r=bdahl

This commit is contained in:
Ryan VanderMeulen 2019-07-05 16:01:46 -04:00
Родитель d314c4dfa3
Коммит ba87f763bf
4 изменённых файлов: 22 добавлений и 16 удалений

Просмотреть файл

@ -1,5 +1,5 @@
This is the PDF.js project output, https://github.com/mozilla/pdf.js
Current extension version is: 2.2.213
Current extension version is: 2.2.224
Taken from upstream commit: 2cc0bfd1
Taken from upstream commit: a98ce9cb

Просмотреть файл

@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";
var pdfjsVersion = '2.2.213';
var pdfjsBuild = '2cc0bfd1';
var pdfjsVersion = '2.2.224';
var pdfjsBuild = 'a98ce9cb';
var pdfjsSharedUtil = __w_pdfjs_require__(1);
@ -1304,7 +1304,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
return worker.messageHandler.sendWithPromise('GetDocRequest', {
docId,
apiVersion: '2.2.213',
apiVersion: '2.2.224',
source: {
data: source.data,
url: source.url,
@ -3100,9 +3100,9 @@ const InternalRenderTask = function InternalRenderTaskClosure() {
return InternalRenderTask;
}();
const version = '2.2.213';
const version = '2.2.224';
exports.version = version;
const build = '2cc0bfd1';
const build = 'a98ce9cb';
exports.build = build;
/***/ }),

Просмотреть файл

@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";
const pdfjsVersion = '2.2.213';
const pdfjsBuild = '2cc0bfd1';
const pdfjsVersion = '2.2.224';
const pdfjsBuild = 'a98ce9cb';
const pdfjsCoreWorker = __w_pdfjs_require__(1);
@ -240,7 +240,7 @@ var WorkerMessageHandler = {
var WorkerTasks = [];
const verbosity = (0, _util.getVerbosityLevel)();
let apiVersion = docParams.apiVersion;
let workerVersion = '2.2.213';
let workerVersion = '2.2.224';
if (apiVersion !== workerVersion) {
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
@ -4771,10 +4771,16 @@ var XRef = function XRefClosure() {
entry.gen = parser.getObj();
var type = parser.getObj();
if ((0, _primitives.isCmd)(type, 'f')) {
entry.free = true;
} else if ((0, _primitives.isCmd)(type, 'n')) {
entry.uncompressed = true;
if (type instanceof _primitives.Cmd) {
switch (type.cmd) {
case 'f':
entry.free = true;
break;
case 'n':
entry.uncompressed = true;
break;
}
}
if (!Number.isInteger(entry.offset) || !Number.isInteger(entry.gen) || !(entry.free || entry.uncompressed)) {
@ -5270,7 +5276,7 @@ var XRef = function XRefClosure() {
obj2 = parseInt(obj2, 10);
}
if (obj1 !== num || obj2 !== gen || !(0, _primitives.isCmd)(obj3)) {
if (obj1 !== num || obj2 !== gen || !(obj3 instanceof _primitives.Cmd)) {
throw new _core_utils.XRefEntryException(`Bad (uncompressed) XRef entry: ${ref}`);
}

Просмотреть файл

@ -20,7 +20,7 @@ origin:
# Human-readable identifier for this version/release
# Generally "version NNN", "tag SSS", "bookmark SSS"
release: version 2.2.213
release: version 2.2.224
# The package's license, where possible using the mnemonic from
# https://spdx.org/licenses/