mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
Backed out changeset f1c0f0d6aa49 (bug 1923598) for causing talos-pdfs bustage. CLOSED TREE
This commit is contained in:
parent
94302190b7
commit
0bef1506d7
@ -696,7 +696,7 @@ mozilla-pdf.js:
|
||||
fetch:
|
||||
type: git
|
||||
repo: https://github.com/mozilla/pdf.js
|
||||
revision: 233ac1773da43cf7557615b659b56ac5ef2fc431
|
||||
revision: 81cf42df470f85eb60150bdffca380e3eee79c08
|
||||
|
||||
xmlstarlet-1.6.1:
|
||||
description: xmlstarlet for Android Performance Tests
|
||||
|
@ -9856,7 +9856,7 @@ function getDocument(src = {}) {
|
||||
}
|
||||
const docParams = {
|
||||
docId,
|
||||
apiVersion: "4.7.85",
|
||||
apiVersion: "4.7.78",
|
||||
data,
|
||||
password,
|
||||
disableAutoFetch,
|
||||
@ -11528,8 +11528,8 @@ class InternalRenderTask {
|
||||
}
|
||||
}
|
||||
}
|
||||
const version = "4.7.85";
|
||||
const build = "233ac1773";
|
||||
const version = "4.7.78";
|
||||
const build = "81cf42df4";
|
||||
|
||||
;// ./src/shared/scripting_utils.js
|
||||
function makeColorComp(n) {
|
||||
@ -18883,8 +18883,8 @@ class DrawLayer {
|
||||
|
||||
|
||||
|
||||
const pdfjsVersion = "4.7.85";
|
||||
const pdfjsBuild = "233ac1773";
|
||||
const pdfjsVersion = "4.7.78";
|
||||
const pdfjsBuild = "81cf42df4";
|
||||
|
||||
var __webpack_exports__AbortException = __webpack_exports__.AbortException;
|
||||
var __webpack_exports__AnnotationEditorLayer = __webpack_exports__.AnnotationEditorLayer;
|
||||
|
@ -4030,8 +4030,8 @@ function initSandbox(params) {
|
||||
|
||||
;// ./src/pdf.scripting.js
|
||||
|
||||
const pdfjsVersion = "4.7.85";
|
||||
const pdfjsBuild = "233ac1773";
|
||||
const pdfjsVersion = "4.7.78";
|
||||
const pdfjsBuild = "81cf42df4";
|
||||
globalThis.pdfjsScripting = {
|
||||
initSandbox: initSandbox
|
||||
};
|
||||
|
@ -55200,11 +55200,10 @@ class PDFDocument {
|
||||
}
|
||||
}
|
||||
get fieldObjects() {
|
||||
const promise = this.pdfManager.ensureDoc("formInfo").then(async formInfo => {
|
||||
if (!formInfo.hasFields) {
|
||||
return null;
|
||||
}
|
||||
const [annotationGlobals, acroForm] = await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"), this.pdfManager.ensureCatalog("acroForm")]);
|
||||
if (!this.formInfo.hasFields) {
|
||||
return shadow(this, "fieldObjects", Promise.resolve(null));
|
||||
}
|
||||
const promise = Promise.all([this.pdfManager.ensureDoc("annotationGlobals"), this.pdfManager.ensureCatalog("acroForm")]).then(async ([annotationGlobals, acroForm]) => {
|
||||
if (!annotationGlobals) {
|
||||
return null;
|
||||
}
|
||||
@ -55247,7 +55246,11 @@ class PDFDocument {
|
||||
return false;
|
||||
}
|
||||
get calculationOrderIds() {
|
||||
const calculationOrder = this.catalog.acroForm?.get("CO");
|
||||
const acroForm = this.catalog.acroForm;
|
||||
if (!acroForm?.has("CO")) {
|
||||
return shadow(this, "calculationOrderIds", null);
|
||||
}
|
||||
const calculationOrder = acroForm.get("CO");
|
||||
if (!Array.isArray(calculationOrder) || calculationOrder.length === 0) {
|
||||
return shadow(this, "calculationOrderIds", null);
|
||||
}
|
||||
@ -55257,7 +55260,10 @@ class PDFDocument {
|
||||
ids.push(id.toString());
|
||||
}
|
||||
}
|
||||
return shadow(this, "calculationOrderIds", ids.length ? ids : null);
|
||||
if (ids.length === 0) {
|
||||
return shadow(this, "calculationOrderIds", null);
|
||||
}
|
||||
return shadow(this, "calculationOrderIds", ids);
|
||||
}
|
||||
get annotationGlobals() {
|
||||
return shadow(this, "annotationGlobals", AnnotationFactory.createGlobals(this.pdfManager));
|
||||
@ -55980,7 +55986,7 @@ class WorkerMessageHandler {
|
||||
docId,
|
||||
apiVersion
|
||||
} = docParams;
|
||||
const workerVersion = "4.7.85";
|
||||
const workerVersion = "4.7.78";
|
||||
if (apiVersion !== workerVersion) {
|
||||
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
|
||||
}
|
||||
@ -56544,8 +56550,8 @@ if (typeof window === "undefined" && !isNodeJS && typeof self !== "undefined" &&
|
||||
|
||||
;// ./src/pdf.worker.js
|
||||
|
||||
const pdfjsVersion = "4.7.85";
|
||||
const pdfjsBuild = "233ac1773";
|
||||
const pdfjsVersion = "4.7.78";
|
||||
const pdfjsBuild = "81cf42df4";
|
||||
|
||||
var __webpack_exports__WorkerMessageHandler = __webpack_exports__.WorkerMessageHandler;
|
||||
export { __webpack_exports__WorkerMessageHandler as WorkerMessageHandler };
|
||||
|
@ -6272,7 +6272,7 @@ class PDFViewer {
|
||||
#scaleTimeoutId = null;
|
||||
#textLayerMode = TextLayerMode.ENABLE;
|
||||
constructor(options) {
|
||||
const viewerVersion = "4.7.85";
|
||||
const viewerVersion = "4.7.78";
|
||||
if (version !== viewerVersion) {
|
||||
throw new Error(`The API version "${version}" does not match the Viewer version "${viewerVersion}".`);
|
||||
}
|
||||
@ -6524,17 +6524,17 @@ class PDFViewer {
|
||||
if (document.visibilityState === "hidden" || !this.container.offsetParent || this._getVisiblePages().views.length === 0) {
|
||||
return;
|
||||
}
|
||||
const hiddenCapability = Promise.withResolvers(),
|
||||
ac = new AbortController();
|
||||
document.addEventListener("visibilitychange", () => {
|
||||
const hiddenCapability = Promise.withResolvers();
|
||||
function onVisibilityChange() {
|
||||
if (document.visibilityState === "hidden") {
|
||||
hiddenCapability.resolve();
|
||||
}
|
||||
}, {
|
||||
signal: AbortSignal.any([signal, ac.signal])
|
||||
}
|
||||
document.addEventListener("visibilitychange", onVisibilityChange, {
|
||||
signal
|
||||
});
|
||||
await Promise.race([this._onePageRenderedCapability.promise, hiddenCapability.promise]);
|
||||
ac.abort();
|
||||
document.removeEventListener("visibilitychange", onVisibilityChange);
|
||||
}
|
||||
async getAllText() {
|
||||
const texts = [];
|
||||
@ -9896,8 +9896,8 @@ function beforeUnload(evt) {
|
||||
|
||||
|
||||
|
||||
const pdfjsVersion = "4.7.85";
|
||||
const pdfjsBuild = "233ac1773";
|
||||
const pdfjsVersion = "4.7.78";
|
||||
const pdfjsBuild = "81cf42df4";
|
||||
const AppConstants = null;
|
||||
window.PDFViewerApplication = PDFViewerApplication;
|
||||
window.PDFViewerApplicationConstants = AppConstants;
|
||||
|
@ -9411,7 +9411,7 @@ class PDFViewer {
|
||||
#scaleTimeoutId = null;
|
||||
#textLayerMode = TextLayerMode.ENABLE;
|
||||
constructor(options) {
|
||||
const viewerVersion = "4.7.85";
|
||||
const viewerVersion = "4.7.78";
|
||||
if (version !== viewerVersion) {
|
||||
throw new Error(`The API version "${version}" does not match the Viewer version "${viewerVersion}".`);
|
||||
}
|
||||
@ -9663,17 +9663,17 @@ class PDFViewer {
|
||||
if (document.visibilityState === "hidden" || !this.container.offsetParent || this._getVisiblePages().views.length === 0) {
|
||||
return;
|
||||
}
|
||||
const hiddenCapability = Promise.withResolvers(),
|
||||
ac = new AbortController();
|
||||
document.addEventListener("visibilitychange", () => {
|
||||
const hiddenCapability = Promise.withResolvers();
|
||||
function onVisibilityChange() {
|
||||
if (document.visibilityState === "hidden") {
|
||||
hiddenCapability.resolve();
|
||||
}
|
||||
}, {
|
||||
signal: AbortSignal.any([signal, ac.signal])
|
||||
}
|
||||
document.addEventListener("visibilitychange", onVisibilityChange, {
|
||||
signal
|
||||
});
|
||||
await Promise.race([this._onePageRenderedCapability.promise, hiddenCapability.promise]);
|
||||
ac.abort();
|
||||
document.removeEventListener("visibilitychange", onVisibilityChange);
|
||||
}
|
||||
async getAllText() {
|
||||
const texts = [];
|
||||
@ -13601,8 +13601,8 @@ function beforeUnload(evt) {
|
||||
|
||||
|
||||
|
||||
const pdfjsVersion = "4.7.85";
|
||||
const pdfjsBuild = "233ac1773";
|
||||
const pdfjsVersion = "4.7.78";
|
||||
const pdfjsBuild = "81cf42df4";
|
||||
const AppConstants = null;
|
||||
window.PDFViewerApplication = PDFViewerApplication;
|
||||
window.PDFViewerApplicationConstants = AppConstants;
|
||||
|
@ -20,8 +20,8 @@ origin:
|
||||
|
||||
# Human-readable identifier for this version/release
|
||||
# Generally "version NNN", "tag SSS", "bookmark SSS"
|
||||
release: 233ac1773da43cf7557615b659b56ac5ef2fc431 (2024-10-08T18:41:43Z).
|
||||
revision: 233ac1773da43cf7557615b659b56ac5ef2fc431
|
||||
release: 81cf42df470f85eb60150bdffca380e3eee79c08 (2024-10-06T11:49:12Z).
|
||||
revision: 81cf42df470f85eb60150bdffca380e3eee79c08
|
||||
|
||||
# The package's license, where possible using the mnemonic from
|
||||
# https://spdx.org/licenses/
|
||||
|
Loading…
x
Reference in New Issue
Block a user