blob: 8c4ddabdf8a5eafe065489ee9f89afb42d175ad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<html>
<head>
<script>
function boom()
{
var canvas = document.getElementById("canvas");
var ctx = SpecialPowers.wrap(canvas.getContext("2d"));
ctx.drawWindow(window, 0, 0, canvas.width, canvas.height, "red");
}
</script>
</head>
<body onload="boom();">
<canvas id="canvas" width="10" height="10"></canvas>
</body>
</html>
|