Bug 1468991 - Update pdf.js to version 2.0.581. r=bdahl

--HG--
extra : rebase_source : 40b8d336d3902abbb7d83888a8d1379c541a073a
This commit is contained in:
Ryan VanderMeulen 2018-06-15 12:24:14 -04:00
Родитель 8d06ff94c2
Коммит 74030f5083
5 изменённых файлов: 14 добавлений и 20 удалений

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

@ -1,5 +1,5 @@
This is the PDF.js project output, https://github.com/mozilla/pdf.js
Current extension version is: 2.0.575
Current extension version is: 2.0.581
Taken from upstream commit: 2030d171
Taken from upstream commit: 790e2124

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

@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";
var pdfjsVersion = '2.0.575';
var pdfjsBuild = '2030d171';
var pdfjsVersion = '2.0.581';
var pdfjsBuild = '790e2124';
var pdfjsSharedUtil = __w_pdfjs_require__(1);
var pdfjsDisplayAPI = __w_pdfjs_require__(6);
var pdfjsDisplayTextLayer = __w_pdfjs_require__(18);
@ -4228,7 +4228,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
}
return worker.messageHandler.sendWithPromise('GetDocRequest', {
docId,
apiVersion: '2.0.575',
apiVersion: '2.0.581',
source: {
data: source.data,
url: source.url,
@ -5562,8 +5562,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.575';
exports.build = build = '2030d171';
exports.version = version = '2.0.581';
exports.build = build = '790e2124';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

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

@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";
var pdfjsVersion = '2.0.575';
var pdfjsBuild = '2030d171';
var pdfjsVersion = '2.0.581';
var pdfjsBuild = '790e2124';
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.575';
let workerVersion = '2.0.581';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
}

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

@ -546,7 +546,8 @@ html[dir='rtl'] #sidebarContent {
bottom: 0;
left: 0;
outline: none;
}
#viewerContainer:not(.pdfPresentationMode) {
transition-duration: 200ms;
transition-timing-function: ease;
}
@ -562,12 +563,12 @@ html[dir='rtl'] #viewerContainer {
transition-duration: 0s;
}
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
transition-property: left;
left: 200px;
left: var(--sidebar-width);
}
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
transition-property: right;
right: 200px;
right: var(--sidebar-width);

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

@ -669,9 +669,6 @@ let PDFViewerApplication = {
get supportsFullscreen() {
let support;
support = document.fullscreenEnabled === true || document.mozFullScreenEnabled === true;
if (support && _app_options.AppOptions.get('disableFullscreen') === true) {
support = false;
}
return (0, _pdfjsLib.shadow)(this, 'supportsFullscreen', support);
},
get supportsIntegratedFind() {
@ -3177,10 +3174,6 @@ const defaultOptions = {
value: '',
kind: OptionKind.VIEWER
},
disableFullscreen: {
value: _viewer_compatibility.viewerCompatibilityParams.disableFullscreen || false,
kind: OptionKind.VIEWER
},
disableHistory: {
value: false,
kind: OptionKind.VIEWER