summaryrefslogtreecommitdiffstats
path: root/dom/canvas/crashtests/1816140.html
blob: 3fe55cef62f8b88620c4bf2879353c117f7d0d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
<head>
    <script>
      window.addEventListener("load", async () => {
        const adapter = await navigator.gpu.requestAdapter({})
        const device = await adapter.requestDevice({})
        const canvas = new OffscreenCanvas(184, 4266759736)
        context = canvas.getContext('webgpu')
        context.configure({
          device: device,
          format: context.getPreferredFormat(adapter),
        })
      })
    </script>
</head>
</html>