зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1502472 - Update pdf.js to version 2.0.943. r=bdahl
This commit is contained in:
Родитель
02232beb09
Коммит
d7736d72b9
|
@ -1,5 +1,5 @@
|
|||
This is the PDF.js project output, https://github.com/mozilla/pdf.js
|
||||
|
||||
Current extension version is: 2.0.936
|
||||
Current extension version is: 2.0.943
|
||||
|
||||
Taken from upstream commit: d2189293
|
||||
Taken from upstream commit: dc98bf76
|
||||
|
|
|
@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
"use strict";
|
||||
|
||||
|
||||
var pdfjsVersion = '2.0.936';
|
||||
var pdfjsBuild = 'd2189293';
|
||||
var pdfjsVersion = '2.0.943';
|
||||
var pdfjsBuild = 'dc98bf76';
|
||||
var pdfjsSharedUtil = __w_pdfjs_require__(1);
|
||||
var pdfjsDisplayAPI = __w_pdfjs_require__(7);
|
||||
var pdfjsDisplayTextLayer = __w_pdfjs_require__(19);
|
||||
|
@ -4226,7 +4226,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
|
|||
}
|
||||
return worker.messageHandler.sendWithPromise('GetDocRequest', {
|
||||
docId,
|
||||
apiVersion: '2.0.936',
|
||||
apiVersion: '2.0.943',
|
||||
source: {
|
||||
data: source.data,
|
||||
url: source.url,
|
||||
|
@ -4283,8 +4283,8 @@ var PDFDocumentLoadingTask = function PDFDocumentLoadingTaskClosure() {
|
|||
};
|
||||
return PDFDocumentLoadingTask;
|
||||
}();
|
||||
var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
|
||||
function PDFDataRangeTransport(length, initialData) {
|
||||
class PDFDataRangeTransport {
|
||||
constructor(length, initialData) {
|
||||
this.length = length;
|
||||
this.initialData = initialData;
|
||||
this._rangeListeners = [];
|
||||
|
@ -4292,48 +4292,42 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
|
|||
this._progressiveReadListeners = [];
|
||||
this._readyCapability = (0, _util.createPromiseCapability)();
|
||||
}
|
||||
PDFDataRangeTransport.prototype = {
|
||||
addRangeListener: function PDFDataRangeTransport_addRangeListener(listener) {
|
||||
addRangeListener(listener) {
|
||||
this._rangeListeners.push(listener);
|
||||
},
|
||||
addProgressListener: function PDFDataRangeTransport_addProgressListener(listener) {
|
||||
}
|
||||
addProgressListener(listener) {
|
||||
this._progressListeners.push(listener);
|
||||
},
|
||||
addProgressiveReadListener: function PDFDataRangeTransport_addProgressiveReadListener(listener) {
|
||||
}
|
||||
addProgressiveReadListener(listener) {
|
||||
this._progressiveReadListeners.push(listener);
|
||||
},
|
||||
onDataRange: function PDFDataRangeTransport_onDataRange(begin, chunk) {
|
||||
var listeners = this._rangeListeners;
|
||||
for (var i = 0, n = listeners.length; i < n; ++i) {
|
||||
listeners[i](begin, chunk);
|
||||
}
|
||||
},
|
||||
onDataProgress: function PDFDataRangeTransport_onDataProgress(loaded) {
|
||||
onDataRange(begin, chunk) {
|
||||
for (const listener of this._rangeListeners) {
|
||||
listener(begin, chunk);
|
||||
}
|
||||
}
|
||||
onDataProgress(loaded) {
|
||||
this._readyCapability.promise.then(() => {
|
||||
var listeners = this._progressListeners;
|
||||
for (var i = 0, n = listeners.length; i < n; ++i) {
|
||||
listeners[i](loaded);
|
||||
for (const listener of this._progressListeners) {
|
||||
listener(loaded);
|
||||
}
|
||||
});
|
||||
},
|
||||
onDataProgressiveRead: function PDFDataRangeTransport_onDataProgress(chunk) {
|
||||
}
|
||||
onDataProgressiveRead(chunk) {
|
||||
this._readyCapability.promise.then(() => {
|
||||
var listeners = this._progressiveReadListeners;
|
||||
for (var i = 0, n = listeners.length; i < n; ++i) {
|
||||
listeners[i](chunk);
|
||||
for (const listener of this._progressiveReadListeners) {
|
||||
listener(chunk);
|
||||
}
|
||||
});
|
||||
},
|
||||
transportReady: function PDFDataRangeTransport_transportReady() {
|
||||
}
|
||||
transportReady() {
|
||||
this._readyCapability.resolve();
|
||||
},
|
||||
requestDataRange: function PDFDataRangeTransport_requestDataRange(begin, end) {
|
||||
}
|
||||
requestDataRange(begin, end) {
|
||||
(0, _util.unreachable)('Abstract method PDFDataRangeTransport.requestDataRange');
|
||||
},
|
||||
abort: function PDFDataRangeTransport_abort() {}
|
||||
};
|
||||
return PDFDataRangeTransport;
|
||||
}();
|
||||
}
|
||||
abort() {}
|
||||
}
|
||||
class PDFDocumentProxy {
|
||||
constructor(pdfInfo, transport, loadingTask) {
|
||||
this.loadingTask = loadingTask;
|
||||
|
@ -5561,8 +5555,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
|
|||
}();
|
||||
var version, build;
|
||||
{
|
||||
exports.version = version = '2.0.936';
|
||||
exports.build = build = 'd2189293';
|
||||
exports.version = version = '2.0.943';
|
||||
exports.build = build = 'dc98bf76';
|
||||
}
|
||||
exports.getDocument = getDocument;
|
||||
exports.LoopbackPort = LoopbackPort;
|
||||
|
|
|
@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||
"use strict";
|
||||
|
||||
|
||||
var pdfjsVersion = '2.0.936';
|
||||
var pdfjsBuild = 'd2189293';
|
||||
var pdfjsVersion = '2.0.943';
|
||||
var pdfjsBuild = 'dc98bf76';
|
||||
var pdfjsCoreWorker = __w_pdfjs_require__(1);
|
||||
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
|
||||
|
||||
|
@ -327,7 +327,7 @@ var WorkerMessageHandler = {
|
|||
var cancelXHRs = null;
|
||||
var WorkerTasks = [];
|
||||
let apiVersion = docParams.apiVersion;
|
||||
let workerVersion = '2.0.936';
|
||||
let workerVersion = '2.0.943';
|
||||
if (apiVersion !== workerVersion) {
|
||||
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
|
||||
}
|
||||
|
|
|
@ -9013,19 +9013,17 @@ class MozL10n {
|
|||
window.addEventListener(event, handleEvent);
|
||||
}
|
||||
})();
|
||||
function FirefoxComDataRangeTransport(length, initialData) {
|
||||
_pdfjsLib.PDFDataRangeTransport.call(this, length, initialData);
|
||||
}
|
||||
FirefoxComDataRangeTransport.prototype = Object.create(_pdfjsLib.PDFDataRangeTransport.prototype);
|
||||
FirefoxComDataRangeTransport.prototype.requestDataRange = function FirefoxComDataRangeTransport_requestDataRange(begin, end) {
|
||||
class FirefoxComDataRangeTransport extends _pdfjsLib.PDFDataRangeTransport {
|
||||
requestDataRange(begin, end) {
|
||||
FirefoxCom.request('requestDataRange', {
|
||||
begin,
|
||||
end
|
||||
});
|
||||
};
|
||||
FirefoxComDataRangeTransport.prototype.abort = function FirefoxComDataRangeTransport_abort() {
|
||||
}
|
||||
abort() {
|
||||
FirefoxCom.requestSync('abortLoading', null);
|
||||
};
|
||||
}
|
||||
}
|
||||
_app.PDFViewerApplication.externalServices = {
|
||||
updateFindControlState(data) {
|
||||
FirefoxCom.request('updateFindControlState', data);
|
||||
|
|
|
@ -20,7 +20,7 @@ origin:
|
|||
|
||||
# Human-readable identifier for this version/release
|
||||
# Generally "version NNN", "tag SSS", "bookmark SSS"
|
||||
release: version 2.0.936
|
||||
release: version 2.0.943
|
||||
|
||||
# The package's license, where possible using the mnemonic from
|
||||
# https://spdx.org/licenses/
|
||||
|
|
Загрузка…
Ссылка в новой задаче