mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
WPT reftests capture screenshots through WebDriver::draw_bounding_box_from_the_framebuffer(), which creates a scratch 2D canvas outside normal script execution. This regressed when CanvasRenderingContext2DSettings started using the generated bindings conversion path. That path now looks at the current realm even for this codepath, whereas the previous handwritten conversion did not, so WebDriver screenshot capture could hit a missing running execution context and crash. Push a TemporaryExecutionContext while creating the scratch canvas so the generated conversion has the realm it expects and WPT reftests no longer crash.
5.0 KiB
5.0 KiB