summaryrefslogtreecommitdiffstats
path: root/dom/canvas/crashtests/729116.html
blob: 679f9d2965d670399e16eefce49b9118622782c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<script language=javascript>

function draw() {
  var canv = document.getElementById("canv");
  var ctx = canv.getContext("2d");
  try {
    canv.width = 50000;
  } catch (e) { }

  ctx.clearRect(0, 0, 10, 10);
}

</script>
<body onload="draw()">
<canvas id="canv" width="5" height="5"></canvas>
</body>
</html>