mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibGfx/JPEGWriter: Fix crash on macOS when csize coefficient is 0
This fixes #21108
This commit is contained in:
parent
80eec1e16b
commit
68e916490b
Notes:
sideshowbarker
2024-07-17 03:59:29 +09:00
Author: https://github.com/warpdesign
Commit: 68e916490b
Pull-request: https://github.com/SerenityOS/serenity/pull/21352
Issue: https://github.com/SerenityOS/serenity/issues/21108
Reviewed-by: https://github.com/LucasChollet ✅
Reviewed-by: https://github.com/bplaat ✅
Reviewed-by: https://github.com/gmta
3 changed files with 9 additions and 5 deletions
|
@ -13,10 +13,9 @@
|
|||
});
|
||||
|
||||
// 2. Export a canvas to JPEG data URL
|
||||
// FIXME: This fails on macOS: https://github.com/SerenityOS/serenity/issues/21108
|
||||
// testPart(() => {
|
||||
// const canvas = document.createElement('canvas');
|
||||
// return canvas.toDataURL('image/jpeg').substring(5, 15);
|
||||
// });
|
||||
testPart(() => {
|
||||
const canvas = document.createElement('canvas');
|
||||
return canvas.toDataURL('image/jpeg').substring(5, 15);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue