Bug 1640401 - add crashtest for font sanitization. r=jrmuizel
authorLee Salzman <lsalzman@mozilla.com>
Sat, 23 May 2020 23:55:16 +0000
changeset 531815 b8c14a842909cc9b2a828a34f9f1fd5670775f48
parent 531814 ef3150fdf5ae71e7a98c5f1eed4fb4bdf5f15836
child 531816 6191dcf6f130dd30fe25b93836231b0d122bc3e9
push id116890
push userlsalzman@mozilla.com
push dateSun, 24 May 2020 00:32:36 +0000
treeherderautoland@b8c14a842909 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1640401
milestone78.0a1
first release with
nightly linux32
b8c14a842909 / 78.0a1 / 20200524092930 / files
nightly linux64
b8c14a842909 / 78.0a1 / 20200524092930 / files
nightly mac
b8c14a842909 / 78.0a1 / 20200524092930 / files
nightly win32
b8c14a842909 / 78.0a1 / 20200524092930 / files
nightly win64
b8c14a842909 / 78.0a1 / 20200524092930 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1640401 - add crashtest for font sanitization. r=jrmuizel Differential Revision: https://phabricator.services.mozilla.com/D76612
gfx/tests/crashtests/1640401-1.html
gfx/tests/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/gfx/tests/crashtests/1640401-1.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<!-- Test that SimSun, a default TTC font on Win10, is correctly handled by WR.
+     It may fail to generate a font descriptor and transmit as raw font data.
+     In some cases, WR did not properly expect to deal with said TTC font and
+     crashed as a result.
+-->
+<html><head>
+<style>
+@font-face {
+    font-family: "CrashMe";
+    src: local("SimSun");
+}
+
+body {
+  font-family: 'CrashMe';
+}
+
+h1 {
+  font-weight: 500;
+}
+
+input {
+  font-family: 'CrashMe';
+}
+
+</style>
+</head>
+<body>
+<h1>1</h1>
+<input placeholder="2">
+</body></html>
--- a/gfx/tests/crashtests/crashtests.list
+++ b/gfx/tests/crashtests/crashtests.list
@@ -185,8 +185,9 @@ load 1524418.html
 pref(layout.css.individual-transform.enabled,true) load 1529149.html
 load 1541113.html
 pref(layout.css.individual-transform.enabled,true) load 1547169.html
 load 1535657.html
 load 1566206.html
 load 1615141.html
 load 1615091.html
 load 1620125.html
+load 1640401-1.html