Bug 1764886 - Update pdf.js to version 2.14.171 r=pdfjs-reviewers,marco

Differential Revision: https://phabricator.services.mozilla.com/D143819
This commit is contained in:
Calixte
2022-04-15 12:50:55 +00:00
parent 59e971710c
commit 787c2e38ec
10 changed files with 1216 additions and 813 deletions

View File

@@ -29,7 +29,7 @@
exports["pdfjs-dist/build/pdf.scripting"] = factory();
else
root.pdfjsScripting = factory();
})(this, function() {
})(this, () => {
return /******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ([
@@ -641,7 +641,12 @@ class Field extends _pdf_object.PDFObject {
if (this._isChoice) {
if (this.multipleSelection) {
const values = new Set(value);
this._currentValueIndices.length = 0;
if (Array.isArray(this._currentValueIndices)) {
this._currentValueIndices.length = 0;
} else {
this._currentValueIndices = [];
}
this._items.forEach(({
displayValue
@@ -2614,6 +2619,10 @@ class EventDispatcher {
mergeChange(event) {
let value = event.value;
if (Array.isArray(value)) {
return value;
}
if (typeof value !== "string") {
value = value.toString();
}
@@ -4947,8 +4956,8 @@ Object.defineProperty(exports, "initSandbox", ({
var _initialization = __w_pdfjs_require__(1);
const pdfjsVersion = '2.14.102';
const pdfjsBuild = 'db4f3adc5';
const pdfjsVersion = '2.14.171';
const pdfjsBuild = '3f5c31e20';
})();
/******/ return __webpack_exports__;