зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1608186 - Update pdf.js to version 2.4.264. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D59379 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
97cc2f34de
Коммит
5af29b2e62
|
@ -1,5 +1,5 @@
|
|||
This is the PDF.js project output, https://github.com/mozilla/pdf.js
|
||||
|
||||
Current extension version is: 2.4.254
|
||||
Current extension version is: 2.4.264
|
||||
|
||||
Taken from upstream commit: b833f843
|
||||
Taken from upstream commit: 4729fdc0
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @licstart The following is the entire license notice for the
|
||||
* Javascript code in this page
|
||||
*
|
||||
* Copyright 2019 Mozilla Foundation
|
||||
* Copyright 2020 Mozilla Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
"use strict";
|
||||
|
||||
|
||||
var pdfjsVersion = '2.4.254';
|
||||
var pdfjsBuild = 'b833f843';
|
||||
var pdfjsVersion = '2.4.264';
|
||||
var pdfjsBuild = '4729fdc0';
|
||||
|
||||
var pdfjsSharedUtil = __w_pdfjs_require__(1);
|
||||
|
||||
|
@ -1234,7 +1234,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
|
|||
|
||||
return worker.messageHandler.sendWithPromise("GetDocRequest", {
|
||||
docId,
|
||||
apiVersion: '2.4.254',
|
||||
apiVersion: '2.4.264',
|
||||
source: {
|
||||
data: source.data,
|
||||
url: source.url,
|
||||
|
@ -3173,9 +3173,9 @@ const InternalRenderTask = function InternalRenderTaskClosure() {
|
|||
return InternalRenderTask;
|
||||
}();
|
||||
|
||||
const version = '2.4.254';
|
||||
const version = '2.4.264';
|
||||
exports.version = version;
|
||||
const build = 'b833f843';
|
||||
const build = '4729fdc0';
|
||||
exports.build = build;
|
||||
|
||||
/***/ }),
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @licstart The following is the entire license notice for the
|
||||
* Javascript code in this page
|
||||
*
|
||||
* Copyright 2019 Mozilla Foundation
|
||||
* Copyright 2020 Mozilla Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
"use strict";
|
||||
|
||||
|
||||
const pdfjsVersion = '2.4.254';
|
||||
const pdfjsBuild = 'b833f843';
|
||||
const pdfjsVersion = '2.4.264';
|
||||
const pdfjsBuild = '4729fdc0';
|
||||
|
||||
const pdfjsCoreWorker = __w_pdfjs_require__(1);
|
||||
|
||||
|
@ -223,7 +223,7 @@ var WorkerMessageHandler = {
|
|||
var WorkerTasks = [];
|
||||
const verbosity = (0, _util.getVerbosityLevel)();
|
||||
const apiVersion = docParams.apiVersion;
|
||||
const workerVersion = '2.4.254';
|
||||
const workerVersion = '2.4.264';
|
||||
|
||||
if (apiVersion !== workerVersion) {
|
||||
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @licstart The following is the entire license notice for the
|
||||
* Javascript code in this page
|
||||
*
|
||||
* Copyright 2019 Mozilla Foundation
|
||||
* Copyright 2020 Mozilla Foundation
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -1264,17 +1264,23 @@ const PDFViewerApplication = {
|
|||
const KNOWN_GENERATORS = ["acrobat distiller", "acrobat pdfwriter", "adobe livecycle", "adobe pdf library", "adobe photoshop", "ghostscript", "tcpdf", "cairo", "dvipdfm", "dvips", "pdftex", "pdfkit", "itext", "prince", "quarkxpress", "mac os x", "microsoft", "openoffice", "oracle", "luradocument", "pdf-xchange", "antenna house", "aspose.cells", "fpdf"];
|
||||
|
||||
if (info.Producer) {
|
||||
KNOWN_GENERATORS.some(function (generator, s, i) {
|
||||
if (!generator.includes(s)) {
|
||||
const producer = info.Producer.toLowerCase();
|
||||
KNOWN_GENERATORS.some(function (generator) {
|
||||
if (!producer.includes(generator)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
generatorId = s.replace(/[ .\-]/g, "_");
|
||||
generatorId = generator.replace(/[ .\-]/g, "_");
|
||||
return true;
|
||||
}.bind(null, info.Producer.toLowerCase()));
|
||||
});
|
||||
}
|
||||
|
||||
let formType = null;
|
||||
|
||||
if (info.IsAcroFormPresent) {
|
||||
formType = info.IsXFAPresent ? "xfa" : "acroform";
|
||||
}
|
||||
|
||||
const formType = !info.IsAcroFormPresent ? null : info.IsXFAPresent ? "xfa" : "acroform";
|
||||
this.externalServices.reportTelemetry({
|
||||
type: "documentInfo",
|
||||
version: versionId,
|
||||
|
@ -1762,12 +1768,19 @@ function webViewerNamedAction(evt) {
|
|||
}
|
||||
}
|
||||
|
||||
function webViewerPresentationModeChanged(evt) {
|
||||
const {
|
||||
active,
|
||||
switchInProgress
|
||||
} = evt;
|
||||
PDFViewerApplication.pdfViewer.presentationModeState = switchInProgress ? _ui_utils.PresentationModeState.CHANGING : active ? _ui_utils.PresentationModeState.FULLSCREEN : _ui_utils.PresentationModeState.NORMAL;
|
||||
function webViewerPresentationModeChanged({
|
||||
active,
|
||||
switchInProgress
|
||||
}) {
|
||||
let state = _ui_utils.PresentationModeState.NORMAL;
|
||||
|
||||
if (switchInProgress) {
|
||||
state = _ui_utils.PresentationModeState.CHANGING;
|
||||
} else if (active) {
|
||||
state = _ui_utils.PresentationModeState.FULLSCREEN;
|
||||
}
|
||||
|
||||
PDFViewerApplication.pdfViewer.presentationModeState = state;
|
||||
}
|
||||
|
||||
function webViewerSidebarViewChanged(evt) {
|
||||
|
|
|
@ -20,7 +20,7 @@ origin:
|
|||
|
||||
# Human-readable identifier for this version/release
|
||||
# Generally "version NNN", "tag SSS", "bookmark SSS"
|
||||
release: version 2.4.254
|
||||
release: version 2.4.264
|
||||
|
||||
# The package's license, where possible using the mnemonic from
|
||||
# https://spdx.org/licenses/
|
||||
|
|
Загрузка…
Ссылка в новой задаче