зеркало из https://github.com/mozilla/gecko-dev.git
Bug 950000 - crashtest.
This commit is contained in:
Родитель
1240a0d52b
Коммит
332e3b357f
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style id="s">
|
||||
|
||||
@font-face {
|
||||
font-family: x;
|
||||
src: url(bogus-font.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: y;
|
||||
src: url(bogus-font.ttf);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var canvas = document.createElement('canvas');
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.font = 'normal 20px x';
|
||||
|
||||
document.getElementById("s").remove();
|
||||
|
||||
setTimeout(function() {
|
||||
ctx.measureText("A");
|
||||
}, 50);
|
||||
}
|
||||
|
||||
window.addEventListener("DOMContentLoaded", boom, false)
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body><div style="font-family: y;">y</div></body>
|
||||
</html>
|
|
@ -112,4 +112,5 @@ load 893572-2.html
|
|||
load 893572-3.html
|
||||
load 893572-4.html
|
||||
load 944579.svg
|
||||
pref(security.fileuri.strict_origin_policy,false) load 950000.html
|
||||
load 1034403-1.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче