summaryrefslogtreecommitdiffstats
path: root/dom/canvas/crashtests/1757755.html
blob: 4e222f79cd5c4723341d329c771c298229d21f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!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>