Provide a js fallback when the wasm version of openjpeg is failing to load (bug 1935076)#19525
Conversation
12ae19e to
c88801c
Compare
|
@Snuffleupagus I've two problems with this PR:
Could you help me to fix these issues ? |
|
@Snuffleupagus if you see a better way to use the fallback, don't worry to take the ownership of this PR. |
That folder should already being excluded from linting, given Line 37 in 34ef74c Is the problem perhaps rather the diff --git a/eslint.config.mjs b/eslint.config.mjs
index 887e013bb..27893feea 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -39,6 +39,7 @@ export default [
"test/tmp/",
"test/pdfs/",
"web/locale/",
+ "web/wasm/",
"**/*~/",
],
},
Yes, that problem is kind of "expected" unless you explicitly tell Webpack to leave the import alone.
|
|
Also, how do we (easily) test this? |
|
I just added a ref test to check the nowasm path. |
c88801c to
84e8179
Compare
84e8179 to
b5265d2
Compare
|
Do we also want to re-init the new Lines 108 to 110 in e3ea926 |
b5265d2 to
b2a860c
Compare
Snuffleupagus
left a comment
There was a problem hiding this comment.
Should we also change
Line 39 in b2a860c
to the following (since
this.#buffer may never be set when we fallback to JS-decoding)?
if (!this.#modulePromise) {… load (bug 1935076)
b2a860c to
36e4f5c
Compare
|
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/36e13c35f49e178/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/a60c9d7055aa88d/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/36e13c35f49e178/output.txt Total script time: 2.54 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/a60c9d7055aa88d/output.txt Total script time: 7.80 mins
|
|
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/70f9e28a5045ef7/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/61020c03a6af55c/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/70f9e28a5045ef7/output.txt Total script time: 17.18 mins
|
Snuffleupagus
left a comment
There was a problem hiding this comment.
r=me, thank you.
Reminder: When updating mozilla-central, the new JS file needs to be added to https://searchfox.org/mozilla-central/source/toolkit/components/pdfjs/jar.mn
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/61020c03a6af55c/output.txt Total script time: 30.53 mins
|
|
It just occurred to me that the way the |
|
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/9efd0b43cf36159/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/56b8e129c88d047/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/9efd0b43cf36159/output.txt Total script time: 16.81 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/56b8e129c88d047/output.txt Total script time: 30.35 mins
|
No description provided.