зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1640401 - add crashtest for font sanitization. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76612
This commit is contained in:
Родитель
163f753f85
Коммит
f99ed95040
|
@ -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>
|
|
@ -190,3 +190,4 @@ load 1566206.html
|
|||
load 1615141.html
|
||||
load 1615091.html
|
||||
load 1620125.html
|
||||
load 1640401-1.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче