mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 06:59:47 +00:00
LibWeb/HTML: Avoid crash for extreme bitmap sizes in OffscreenCanvas
This commit is contained in:
parent
de3f32a5c9
commit
e3b5507113
Notes:
github-actions[bot]
2025-09-22 11:38:58 +00:00
Author: https://github.com/shannonbooth
Commit: e3b5507113
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6251
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 51 additions and 5 deletions
|
@ -80,7 +80,7 @@ private:
|
|||
JS::ThrowCompletionOr<HasOrCreatedContext> create_2d_context(JS::Value options);
|
||||
|
||||
void reset_context_to_default_state();
|
||||
void set_new_bitmap_size(Gfx::IntSize new_size);
|
||||
WebIDL::ExceptionOr<void> set_new_bitmap_size(Gfx::IntSize new_size);
|
||||
|
||||
Variant<GC::Ref<HTML::OffscreenCanvasRenderingContext2D>, GC::Ref<WebGL::WebGLRenderingContext>, GC::Ref<WebGL::WebGL2RenderingContext>, Empty> m_context;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue