summaryrefslogtreecommitdiffstats
path: root/gfx/tests/crashtests/1802382-1-worker.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gfx/tests/crashtests/1802382-1-worker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/tests/crashtests/1802382-1-worker.js b/gfx/tests/crashtests/1802382-1-worker.js
new file mode 100644
index 0000000000..1e8afae2ee
--- /dev/null
+++ b/gfx/tests/crashtests/1802382-1-worker.js
@@ -0,0 +1,6 @@
+self.onmessage = async function(e) {
+ let a = new FontFace('a', 'url(x)')
+ let b = new FontFace('b', 'url(x)')
+ self.fonts.add(a)
+ self.fonts.add(b)
+}