content/canvas/crashtests/745699-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/canvas/crashtests/745699-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<style>
     1.8 +@font-face {
     1.9 +  font-family: "z";
    1.10 +  src: url(invalid);
    1.11 +}
    1.12 +</style>
    1.13 +
    1.14 +<script>
    1.15 +function boom()
    1.16 +{
    1.17 +  var ctx = document.querySelector("canvas").getContext('2d');
    1.18 +  ctx.font = "10px serif";
    1.19 +  document.querySelector("style").appendChild(document.createTextNode(" "));
    1.20 +  ctx.measureText("123");
    1.21 +}
    1.22 +</script>
    1.23 +</head>
    1.24 +
    1.25 +<body onload="boom();">
    1.26 +<canvas width="100" height="100"></canvas>
    1.27 +</body>
    1.28 +</html>

mercurial