Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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>