tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

file_bug449653_1.html (567B)


      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>