Files
sousa-gecko/testing/web-platform/tests/css/css-fonts/font-face-array-buffer-parsing-failure-crash.html
T
Martin Robinson 944616ec2b Bug 2051024 [wpt PR 60946] - script: Gracefully handle font face rule parsing errors in FontFace, a=testonly
Automatic update from web-platform-tests
script: Gracefully handle font face rule parsing errors in `FontFace`

This change avoids a panic when a font face rule fails to parse in the
`ArrayBuffer` creation path. The issue was that when the constructor is
passed an `ArrayBuffer`, we didn't check if the parsing previously
failed in new_inherited, and then queued the task for loading data
anyway.

Signed-off-by: Martin Robinson <martin@abandonedwig.info>

--

wpt-commits: 32eac84b88d20d2ae654cde231c00776ca2285d6
wpt-pr: 60946
2026-07-10 09:20:25 +00:00

6 lines
141 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://github.com/servo/servo/issues/44537">
<script>
new FontFace("1",new ArrayBuffer());
</script>