content/canvas/crashtests/553938-1.html
author Gregory Szorc <gps@mozilla.com>
Wed, 08 Jan 2014 11:19:21 -0800
changeset 201362 3c72c5ea486c94436fad7e206344a11b8bb3453d
parent 54645 970453a7c6b913e90c1555c877b0dab6262aacc3
permissions -rw-r--r--
Bug 957721 - Switch mach's shebang to look for python2.7. r=glandium OpenBSD doesn't have "python" on $PATH by default. "python" may also come from a non-2.7 Python. Switching the shebang will help ensure the user invokes mach with Python 2.7.

<!doctype html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>ImageData Crash Test</title>
  </head>
  <body onload="crash();">
    <canvas id="c" width="10" height="10"></canvas>
    <script>
      function crash() {
        var canvas = document.getElementById('c');
        var ctx = canvas.getContext('2d');
        var imgData = {data: new Array(10*10*4), width: 10, height: 10};

        imgData[0] = 0;
        ctx.putImageData(imgData, 0, 0);
      }
    </script>
  </body>
</html>