layout/generic/test/file_bug449653_1.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <html><head>
     2 <title>Bug 449653 - drawWindow on canvas fails on load, draws white instead of specified region</title>
     3 <style>
     4 html, body {
     5 margin: 0px;
     6 padding: 0px;
     7 }
     8 </style>
     9 </head><body>
    10 <div style="width: 100px; height: 100px; background-color: lime;"></div>
    11 <br>
    12 <canvas id="canvas" width="100" height="100" style="background-color: red;"></canvas>
    13 <script>
    14    var canvas = document.getElementById("canvas");
    15    var ctx = canvas.getContext("2d");
    16    SpecialPowers.wrap(ctx).drawWindow(window, 0, 0, 100, 100, "white");
    17 </script>
    18 </body></html>

mercurial