Use the worker created in the child actor (bug 1966721)

This commit is contained in:
Calixte Denizet 2025-05-15 18:13:53 +02:00
parent b3ccc55c1d
commit f01b13d332

View File

@ -502,7 +502,10 @@ const defaultOptions = {
workerPort: {
/** @type {Object} */
value: null,
value:
typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")
? globalThis.pdfjsPreloadedWorker
: null,
kind: OptionKind.WORKER,
},
workerSrc: {