Skip to content

Commit

Permalink
Merge mozilla-central to autoland. a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarga1989 committed Feb 20, 2019
2 parents 75256d0 + 8e2d3cc commit 685fe7b
Show file tree
Hide file tree
Showing 190 changed files with 3,458 additions and 2,808 deletions.
2 changes: 1 addition & 1 deletion browser/config/mozconfigs/linux64/beta
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.pgo"

. "$topsrcdir/browser/config/mozconfigs/linux64/common-opt"

Expand Down
2 changes: 1 addition & 1 deletion browser/config/mozconfigs/linux64/release
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This make file should be identical to the beta mozconfig, apart from the
# safeguard below

export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.pgo"

. "$topsrcdir/browser/config/mozconfigs/linux64/common-opt"

Expand Down
2 changes: 1 addition & 1 deletion browser/config/mozconfigs/whitelist
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ whitelist['release']['linux32'] += [
whitelist['release']['linux64'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_TELEMETRY_REPORTING=1',
'export MOZ_PGO=1',
'. "$topsrcdir/build/mozconfig.pgo"',
]

if __name__ == '__main__':
Expand Down
1 change: 0 additions & 1 deletion browser/config/mozconfigs/win32/common-opt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
. "$topsrcdir/browser/config/mozconfigs/common"

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-jemalloc

if [ -f /c/builds/gapi.data ]; then
_gapi_keyfile=c:/builds/gapi.data
Expand Down
2 changes: 1 addition & 1 deletion browser/config/mozconfigs/win64-aarch64/common-opt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
. "$topsrcdir/browser/config/mozconfigs/common"

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-jemalloc

if [ -f /c/builds/gapi.data ]; then
_gapi_keyfile=c:/builds/gapi.data
else
Expand Down
2 changes: 1 addition & 1 deletion browser/config/mozconfigs/win64/common-opt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
. "$topsrcdir/browser/config/mozconfigs/common"

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-jemalloc

if [ -f /c/builds/gapi.data ]; then
_gapi_keyfile=c:/builds/gapi.data
else
Expand Down
4 changes: 2 additions & 2 deletions browser/extensions/pdfjs/README.mozilla
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is the PDF.js project output, https://github.com/mozilla/pdf.js

Current extension version is: 2.1.266
Current extension version is: 2.2.15

Taken from upstream commit: 81f5835c
Taken from upstream commit: ece6a31a
28 changes: 14 additions & 14 deletions browser/extensions/pdfjs/content/PdfJsDefaultPreferences.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
"use strict";
var EXPORTED_SYMBOLS = ["PdfJsDefaultPreferences"];
var PdfJsDefaultPreferences = Object.freeze({
"viewOnLoad": 0,
"defaultZoomValue": "",
"sidebarViewOnLoad": -1,
"cursorToolOnLoad": 0,
"defaultZoomValue": "",
"disablePageLabels": false,
"enablePrintAutoRotate": false,
"enableWebGL": false,
"eventBusDispatchToDOM": false,
"pdfBugEnabled": false,
"disableRange": false,
"disableStream": false,
"disableAutoFetch": false,
"disableFontFace": false,
"textLayerMode": 1,
"useOnlyCssZoom": false,
"externalLinkTarget": 0,
"historyUpdateUrl": false,
"pdfBugEnabled": false,
"renderer": "canvas",
"renderInteractiveForms": false,
"enablePrintAutoRotate": false,
"disablePageLabels": false,
"historyUpdateUrl": false,
"sidebarViewOnLoad": -1,
"scrollModeOnLoad": -1,
"spreadModeOnLoad": -1
"spreadModeOnLoad": -1,
"textLayerMode": 1,
"useOnlyCssZoom": false,
"viewOnLoad": 0,
"disableAutoFetch": false,
"disableFontFace": false,
"disableRange": false,
"disableStream": false
});
10 changes: 5 additions & 5 deletions browser/extensions/pdfjs/content/build/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";


var pdfjsVersion = '2.1.266';
var pdfjsBuild = '81f5835c';
var pdfjsVersion = '2.2.15';
var pdfjsBuild = 'ece6a31a';

var pdfjsSharedUtil = __w_pdfjs_require__(1);

Expand Down Expand Up @@ -1411,7 +1411,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {

return worker.messageHandler.sendWithPromise('GetDocRequest', {
docId,
apiVersion: '2.1.266',
apiVersion: '2.2.15',
source: {
data: source.data,
url: source.url,
Expand Down Expand Up @@ -3148,9 +3148,9 @@ const InternalRenderTask = function InternalRenderTaskClosure() {
return InternalRenderTask;
}();

const version = '2.1.266';
const version = '2.2.15';
exports.version = version;
const build = '81f5835c';
const build = 'ece6a31a';
exports.build = build;

/***/ }),
Expand Down
25 changes: 20 additions & 5 deletions browser/extensions/pdfjs/content/build/pdf.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";


const pdfjsVersion = '2.1.266';
const pdfjsBuild = '81f5835c';
const pdfjsVersion = '2.2.15';
const pdfjsBuild = 'ece6a31a';

const pdfjsCoreWorker = __w_pdfjs_require__(1);

Expand Down Expand Up @@ -375,7 +375,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
let apiVersion = docParams.apiVersion;
let workerVersion = '2.1.266';
let workerVersion = '2.2.15';

if (apiVersion !== workerVersion) {
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
Expand Down Expand Up @@ -3007,7 +3007,7 @@ class PDFDocument {
this.xfa = this.acroForm.get('XFA');
const fields = this.acroForm.get('Fields');

if ((!fields || !Array.isArray(fields) || fields.length === 0) && !this.xfa) {
if ((!Array.isArray(fields) || fields.length === 0) && !this.xfa) {
this.acroForm = null;
}
}
Expand All @@ -3019,6 +3019,20 @@ class PDFDocument {
(0, _util.info)('Cannot fetch AcroForm entry; assuming no AcroForms are present');
this.acroForm = null;
}

try {
const collection = this.catalog.catDict.get('Collection');

if ((0, _primitives.isDict)(collection) && collection.getKeys().length > 0) {
this.collection = collection;
}
} catch (ex) {
if (ex instanceof _util.MissingDataException) {
throw ex;
}

(0, _util.info)('Cannot fetch Collection dictionary.');
}
}

get linearization() {
Expand Down Expand Up @@ -3147,7 +3161,8 @@ class PDFDocument {
PDFFormatVersion: this.pdfFormatVersion,
IsLinearized: !!this.linearization,
IsAcroFormPresent: !!this.acroForm,
IsXFAPresent: !!this.xfa
IsXFAPresent: !!this.xfa,
IsCollectionPresent: !!this.collection
};
let infoDict;

Expand Down
Loading

0 comments on commit 685fe7b

Please sign in to comment.