1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibWeb: Make factory methods of WebGL::WebGLContextEvent fallible

This commit is contained in:
Kenneth Myhra 2023-02-19 16:35:16 +01:00 committed by Andreas Kling
parent ff92324fa5
commit f918d12655
3 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ static void fire_webgl_context_event(HTML::HTMLCanvasElement& canvas_element, De
{
// To fire a WebGL context event named e means that an event using the WebGLContextEvent interface, with its type attribute [DOM4] initialized to e, its cancelable attribute initialized to true, and its isTrusted attribute [DOM4] initialized to true, is to be dispatched at the given object.
// FIXME: Consider setting a status message.
auto event = WebGLContextEvent::create(canvas_element.realm(), type, WebGLContextEventInit {});
auto event = WebGLContextEvent::create(canvas_element.realm(), type, WebGLContextEventInit {}).release_value_but_fixme_should_propagate_errors();
event->set_is_trusted(true);
event->set_cancelable(true);
canvas_element.dispatch_event(*event);