-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Don't get ICC color space files if required API options are missing #19669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't get ICC color space files if required API options are missing #19669
Conversation
This seems generally reasonable, but one question: |
5f1c238
to
8345553
Compare
Good point; I have updated the patch. Is this more like what you had in mind? Initially I was a bit worried about such warnings being logged multiple times due to the number of invocations of I have tested the following scenarios with this version of the patch:
|
8345553
to
fb936fd
Compare
This commit improves validation of the API options for the ICC color space logic. If `useWasm` is `true` but the corresponding `wasmUrl` or `iccUrl` API options are not provided we can avoid requesting files with `null` URLs which always results in a 404 response.
fb936fd
to
f44cba8
Compare
wasmUrl
or iccUrl
are missingThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, with passing tests; thank you.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/989d2de546ac131/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/4ad1416cf0f063e/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/989d2de546ac131/output.txt Total script time: 30.05 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/4ad1416cf0f063e/output.txt Total script time: 59.78 mins
|
This commit improves validation of the API options for the ICC color space logic. If
useWasm
istrue
but the correspondingwasmUrl
oriccUrl
API options are not provided we can avoid requesting files withnull
URLs which always results in a 404 response.Fixes #19668.
The diff is slightly shorter with
?w=1
; see https://github.com/mozilla/pdf.js/pull/19669/files?w=1.