LibWeb/WebGL: Preserve original bound objects to return in getParameter

Required by https://qwasm2.m-h.org.uk, which adds a custom `name`
attribute to objects it generates. It then gets some of these objects
out with getParameter, and expects the `name` attribute to be there.
This commit is contained in:
Luke Wilde 2024-12-24 18:16:29 +00:00 committed by Alexander Kalenik
parent c067271897
commit 8e453d5069
Notes: github-actions[bot] 2025-01-08 14:59:41 +00:00
4 changed files with 170 additions and 4 deletions

View file

@ -69,6 +69,7 @@ void WebGL2RenderingContext::initialize(JS::Realm& realm)
void WebGL2RenderingContext::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
WebGL2RenderingContextImpl::visit_edges(visitor);
visitor.visit(m_canvas_element);
}