I am trying to use pdf.js 5.4.149 with the standard distribution of Palemoon (and xulrunner built from version 6.7 release of UXP). While the PDF loads, the toolbar at the top is not displayed correctly.
The errors that are reported in the console are:
Code: Select all
Warning: Setting up fake worker. (pdf.mjs:6350:13)
SyntaxError: import.meta may only appear in a module (pdf.worker.mjs:11338:29)
PDF 110dd61fd57444010b1ab5ff38782f0f [1.4 pdfeTeX-1.21a / TeX] (PDF.js: 5.4.162 [c386d9b87]) (viewer.mjs:21526:13)
Warning: Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering. (pdf.mjs:6350:13)
Warning: ICCBased color space: "InvalidAccessError: synchronous XMLHttpRequests do not support timeout and responseType.". (pdf.worker.mjs:6084:13)
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ (pdf.worker.mjs:8519:6)
Use of XMLHttpRequest’s responseType attribute is no longer supported in the synchronous mode in window context. (pdf.worker.mjs:8520:2)
I've checked and the script tag in viewer.html sets the type of viewer.js to module.
I'd be grateful for any suggestions as to how we over come the "SyntaxError: import.meta may only appear in a module" error as this seems to be the reason that the toolbar is not displayed correctly.
Thanks in advance to your assistance.

