diff options
Diffstat (limited to 'dom/canvas/crashtests/1769878.html')
-rw-r--r-- | dom/canvas/crashtests/1769878.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/canvas/crashtests/1769878.html b/dom/canvas/crashtests/1769878.html new file mode 100644 index 0000000000..1646f71793 --- /dev/null +++ b/dom/canvas/crashtests/1769878.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<script id="w1"> + self.onmessage = async () => { + try { self.close() } catch (e) {} + let a = new OffscreenCanvas(143, 178) + a.convertToBlob({ }) + } + </script> +<script> + window.addEventListener('load', async () => { + const blob = new Blob([document.querySelector('#w1').textContent], { type: "text/javascript" }) + const worker = new Worker(window.URL.createObjectURL(blob)) + worker.postMessage([], []) + }) +</script> |