Files
ladybird/Tests/LibWeb/Crash/HTML/canvas-detached-doc-toDataURL.html
Tim Ledbetter 26389363ad LibGfx+LibWeb: Move Skia backend context to process level singleton
Previously, this was attached to the traversable navigable. Using a
singleton instead allows us to use the context for detached documents.
2026-03-19 13:35:16 +01:00

12 lines
241 B
HTML

<!DOCTYPE html>
<body>
<script>
var doc = document.implementation.createHTMLDocument('');
var canvas = doc.createElement('canvas');
canvas.width = 100;
canvas.height = 100;
doc.body.appendChild(canvas);
canvas.toDataURL();
</script>
</body>