From dde0beafc6737abc0c57b3676452fa6b52d24d37 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sun, 15 Mar 2026 19:23:42 +0100 Subject: [PATCH] Fix the issue in the ref test tracemonkey-extract_0_2_12 When getting the extracted document, the url for the wasms wasn't passed and consequently the icc-based color wasn't rendered as expected because of the wasm for qcms. --- test/driver.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/driver.js b/test/driver.js index 5336ff7a9..802180d19 100644 --- a/test/driver.js +++ b/test/driver.js @@ -666,7 +666,7 @@ class Driver { task.isOffscreenCanvasSupported === false ? false : undefined; const disableFontFace = task.disableFontFace === true; - const loadingTask = getDocument({ + const documentOptions = { url: new URL(task.file, window.location), password: task.password, cMapUrl: CMAP_URL, @@ -682,12 +682,15 @@ class Driver { isOffscreenCanvasSupported, styleElement: xfaStyleElement, disableFontFace, - }); + }; + const loadingTask = getDocument(documentOptions); let promise = loadingTask.promise; if (!this.masterMode && task.type === "extract") { promise = promise.then(async doc => { - const data = await doc.extractPages([ + const extractedDocumentOptions = { ...documentOptions }; + delete extractedDocumentOptions.url; + extractedDocumentOptions.data = await doc.extractPages([ { document: null, includePages: task.includePages, @@ -695,7 +698,7 @@ class Driver { ]); await loadingTask.destroy(); delete task.includePages; - return getDocument(data).promise; + return getDocument(extractedDocumentOptions).promise; }); }