content/canvas/crashtests/896047-2.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE html>
     2 <html>
     3 <body>
     4 <canvas id="c" width="200" height="100">
     5 </canvas>
     6 <script>
     7 var ctx = document.getElementById("c").getContext("2d");
     8 ctx.save();
     9 ctx.mozFillRule = 'nonzero';
    10 ctx.save();
    11 ctx.mozFillRule = 'evenodd';
    12 ctx.rect(0,0, 1,1);
    13 ctx.restore();
    14 ctx.isPointInPath(0,0);
    15 ctx.restore();
    16 ctx.lineTo(10, 0);
    17 </script>
    18 </body>
    19 </html>

mercurial