-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Use HTMLCanvasElement.toBlob()
unconditionally in PDFPrintService
#18644
Use HTMLCanvasElement.toBlob()
unconditionally in PDFPrintService
#18644
Conversation
The fallback is very old code, and according to the MDN compatibility data `HTMLCanvasElement.toBlob()` should be available in all browsers that we support now: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#browser_compatibility
85d6728
to
6a1b1ae
Compare
There 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.
LGTM. Thank you.
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/3b79b9b54f65fa1/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/3b79b9b54f65fa1/output.txt Total script time: 1.03 mins Published |
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/777a17d76ab8cf3/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/b88695ddc4a4225/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/b88695ddc4a4225/output.txt Total script time: 8.74 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/777a17d76ab8cf3/output.txt Total script time: 18.20 mins
|
Thank you for improving this! |
The fallback is very old code, and according to the MDN compatibility data
HTMLCanvasElement.toBlob()
should be available in all browsers that we support now: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#browser_compatibility