summaryrefslogtreecommitdiffstats
path: root/dom/canvas/crashtests/745699-1.html
blob: c65acf201ab752b200864a966aa5dc1259a4c729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
  font-family: "z";
  src: url(invalid);
}
</style>

<script>
function boom()
{
  var ctx = document.querySelector("canvas").getContext('2d');
  ctx.font = "10px serif";
  document.querySelector("style").appendChild(document.createTextNode(" "));
  ctx.measureText("123");
}
</script>
</head>

<body onload="boom();">
<canvas width="100" height="100"></canvas>
</body>
</html>