Merge pull request #19935 from calixteman/bug1966721

Use the worker created in the child actor (bug 1966721)
This commit is contained in:
calixteman 2025-05-15 21:21:06 +02:00 committed by GitHub
commit f4a3e47018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: {