gecko-dev/dom/canvas/crashtests/1757755.html

19 строки
373 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
window.addEventListener("load", () => {
const canvas = document.createElement('canvas');
const context = canvas.getContext("webgl");
const extension = context.getExtension("WEBGL_lose_context");
extension.loseContext();
extension.restoreContext();
canvas.height = 0;
});
</script>
</head>
</html>