1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/file_bug449653_1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<html><head> 1.5 +<title>Bug 449653 - drawWindow on canvas fails on load, draws white instead of specified region</title> 1.6 +<style> 1.7 +html, body { 1.8 +margin: 0px; 1.9 +padding: 0px; 1.10 +} 1.11 +</style> 1.12 +</head><body> 1.13 +<div style="width: 100px; height: 100px; background-color: lime;"></div> 1.14 +<br> 1.15 +<canvas id="canvas" width="100" height="100" style="background-color: red;"></canvas> 1.16 +<script> 1.17 + var canvas = document.getElementById("canvas"); 1.18 + var ctx = canvas.getContext("2d"); 1.19 + SpecialPowers.wrap(ctx).drawWindow(window, 0, 0, 100, 100, "white"); 1.20 +</script> 1.21 +</body></html>