Bug 1869448 - Update PDF.js to 76e3e5202195503b414aa0070fc2e3a2fa19706c r=pdfjs-reviewers,Snuffleupagus

Differential Revision: https://phabricator.services.mozilla.com/D196128
This commit is contained in:
Updatebot 2023-12-12 18:37:13 +00:00
parent 2c0ed52692
commit 31a8e32503
7 changed files with 32 additions and 39 deletions

View File

@ -8260,7 +8260,7 @@ function getDocument(src) {
}
const fetchDocParams = {
docId,
apiVersion: '4.0.321',
apiVersion: '4.0.347',
data,
password,
disableAutoFetch,
@ -9884,8 +9884,8 @@ class InternalRenderTask {
}
}
}
const version = '4.0.321';
const build = 'f54cfe065';
const version = '4.0.347';
const build = '76e3e5202';
;// CONCATENATED MODULE: ./src/display/text_layer.js
@ -16062,8 +16062,8 @@ class DrawLayer {
const pdfjsVersion = '4.0.321';
const pdfjsBuild = 'f54cfe065';
const pdfjsVersion = '4.0.347';
const pdfjsBuild = '76e3e5202';
var __webpack_exports__AbortException = __webpack_exports__.AbortException;
var __webpack_exports__AnnotationEditorLayer = __webpack_exports__.AnnotationEditorLayer;

View File

@ -3996,8 +3996,8 @@ function initSandbox(params) {
;// CONCATENATED MODULE: ./src/pdf.scripting.js
const pdfjsVersion = '4.0.321';
const pdfjsBuild = 'f54cfe065';
const pdfjsVersion = '4.0.347';
const pdfjsBuild = '76e3e5202';
globalThis.pdfjsScripting = {
initSandbox: initSandbox
};

View File

@ -50969,11 +50969,13 @@ class Annotation {
}
if (borderStyle.has("BS")) {
const dict = borderStyle.get("BS");
const dictType = dict.get("Type");
if (!dictType || isName(dictType, "Border")) {
this.borderStyle.setWidth(dict.get("W"), this.rectangle);
this.borderStyle.setStyle(dict.get("S"));
this.borderStyle.setDashArray(dict.getArray("D"));
if (dict instanceof Dict) {
const dictType = dict.get("Type");
if (!dictType || isName(dictType, "Border")) {
this.borderStyle.setWidth(dict.get("W"), this.rectangle);
this.borderStyle.setStyle(dict.get("S"));
this.borderStyle.setDashArray(dict.getArray("D"));
}
}
} else if (borderStyle.has("Border")) {
const array = borderStyle.getArray("Border");
@ -56529,7 +56531,7 @@ class WorkerMessageHandler {
docId,
apiVersion
} = docParams;
const workerVersion = '4.0.321';
const workerVersion = '4.0.347';
if (apiVersion !== workerVersion) {
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
}
@ -57090,8 +57092,8 @@ if (typeof window === "undefined" && !isNodeJS && typeof self !== "undefined" &&
;// CONCATENATED MODULE: ./src/pdf.worker.js
const pdfjsVersion = '4.0.321';
const pdfjsBuild = 'f54cfe065';
const pdfjsVersion = '4.0.347';
const pdfjsBuild = '76e3e5202';
var __webpack_exports__WorkerMessageHandler = __webpack_exports__.WorkerMessageHandler;
export { __webpack_exports__WorkerMessageHandler as WorkerMessageHandler };

View File

@ -2928,12 +2928,10 @@ class PDFScriptingManager {
#pdfDocument = null;
#pdfViewer = null;
#ready = false;
#sandboxBundleSrc = null;
#scripting = null;
#willPrintCapability = null;
constructor({
eventBus,
sandboxBundleSrc = null,
externalServices = null,
docProperties = null
}) {
@ -3243,9 +3241,7 @@ class PDFScriptingManager {
if (this.#scripting) {
throw new Error("#initScripting: Scripting already exists.");
}
return this.#externalServices.createScripting({
sandboxBundleSrc: this.#sandboxBundleSrc
});
return this.#externalServices.createScripting();
}
async #destroyScripting() {
if (!this.#scripting) {
@ -5046,7 +5042,7 @@ class PDFViewer {
#scaleTimeoutId = null;
#textLayerMode = TextLayerMode.ENABLE;
constructor(options) {
const viewerVersion = '4.0.321';
const viewerVersion = '4.0.347';
if (version !== viewerVersion) {
throw new Error(`The API version "${version}" does not match the Viewer version "${viewerVersion}".`);
}
@ -6613,7 +6609,7 @@ class DefaultExternalServices {
static async createL10n() {
throw new Error("Not implemented: createL10n");
}
static createScripting(options) {
static createScripting() {
throw new Error("Not implemented: createScripting");
}
static updateEditorStates(data) {
@ -6793,7 +6789,6 @@ const PDFViewerApplication = {
this.findController = findController;
const pdfScriptingManager = new PDFScriptingManager({
eventBus,
sandboxBundleSrc: null,
externalServices,
docProperties: this._scriptingDocProperties.bind(this)
});
@ -9103,7 +9098,7 @@ class FirefoxExternalServices extends DefaultExternalServices {
const [localeProperties] = await Promise.all([FirefoxCom.requestAsync("getLocaleProperties", null), document.l10n.ready]);
return new L10n(localeProperties, document.l10n);
}
static createScripting(options) {
static createScripting() {
return FirefoxScripting;
}
static async getNimbusExperimentData() {
@ -9267,8 +9262,8 @@ PDFPrintServiceFactory.instance = {
const pdfjsVersion = '4.0.321';
const pdfjsBuild = 'f54cfe065';
const pdfjsVersion = '4.0.347';
const pdfjsBuild = '76e3e5202';
const AppConstants = null;
window.PDFViewerApplication = PDFViewerApplication;
window.PDFViewerApplicationConstants = AppConstants;

View File

@ -280,6 +280,7 @@ See https://github.com/adobe-type-tools/cmap-resources
<div id="editorModeButtons" class="splitToolbarButton toggled" role="radiogroup">
<button id="editorHighlight" class="toolbarButton" hidden="true" disabled="disabled" title="Highlight" role="radio" aria-checked="false" aria-controls="editorHighlightParamsToolbar" tabindex="31" data-l10n-id="pdfjs-editor-highlight">
<span data-l10n-id="pdfjs-editor-highlight-label">Highlight</span>
</button>
<button id="editorFreeText" class="toolbarButton" disabled="disabled" title="Text" role="radio" aria-checked="false" aria-controls="editorFreeTextParamsToolbar" tabindex="32" data-l10n-id="pdfjs-editor-free-text-button">
<span data-l10n-id="pdfjs-editor-free-text-button-label">Text</span>
</button>

View File

@ -4720,12 +4720,10 @@ class PDFScriptingManager {
#pdfDocument = null;
#pdfViewer = null;
#ready = false;
#sandboxBundleSrc = null;
#scripting = null;
#willPrintCapability = null;
constructor({
eventBus,
sandboxBundleSrc = null,
externalServices = null,
docProperties = null
}) {
@ -5035,9 +5033,7 @@ class PDFScriptingManager {
if (this.#scripting) {
throw new Error("#initScripting: Scripting already exists.");
}
return this.#externalServices.createScripting({
sandboxBundleSrc: this.#sandboxBundleSrc
});
return this.#externalServices.createScripting();
}
async #destroyScripting() {
if (!this.#scripting) {
@ -7646,7 +7642,7 @@ class PDFViewer {
#scaleTimeoutId = null;
#textLayerMode = TextLayerMode.ENABLE;
constructor(options) {
const viewerVersion = '4.0.321';
const viewerVersion = '4.0.347';
if (version !== viewerVersion) {
throw new Error(`The API version "${version}" does not match the Viewer version "${viewerVersion}".`);
}
@ -9706,7 +9702,7 @@ class DefaultExternalServices {
static async createL10n() {
throw new Error("Not implemented: createL10n");
}
static createScripting(options) {
static createScripting() {
throw new Error("Not implemented: createScripting");
}
static updateEditorStates(data) {
@ -9885,7 +9881,6 @@ const PDFViewerApplication = {
this.findController = findController;
const pdfScriptingManager = new PDFScriptingManager({
eventBus,
sandboxBundleSrc: null,
externalServices,
docProperties: this._scriptingDocProperties.bind(this)
});
@ -12193,7 +12188,7 @@ class FirefoxExternalServices extends DefaultExternalServices {
const [localeProperties] = await Promise.all([FirefoxCom.requestAsync("getLocaleProperties", null), document.l10n.ready]);
return new L10n(localeProperties, document.l10n);
}
static createScripting(options) {
static createScripting() {
return FirefoxScripting;
}
static async getNimbusExperimentData() {
@ -12357,8 +12352,8 @@ PDFPrintServiceFactory.instance = {
const pdfjsVersion = '4.0.321';
const pdfjsBuild = 'f54cfe065';
const pdfjsVersion = '4.0.347';
const pdfjsBuild = '76e3e5202';
const AppConstants = null;
window.PDFViewerApplication = PDFViewerApplication;
window.PDFViewerApplicationConstants = AppConstants;

View File

@ -20,8 +20,8 @@ origin:
# Human-readable identifier for this version/release
# Generally "version NNN", "tag SSS", "bookmark SSS"
release: f54cfe065ac82ad3f38ebbdfb66d75def6e38a3d (2023-12-06T15:29:33Z).
revision: f54cfe065ac82ad3f38ebbdfb66d75def6e38a3d
release: 76e3e5202195503b414aa0070fc2e3a2fa19706c (2023-12-11T21:30:53Z).
revision: 76e3e5202195503b414aa0070fc2e3a2fa19706c
# The package's license, where possible using the mnemonic from
# https://spdx.org/licenses/