toolkit/devtools/server/tests/mochitest/inspector_getImageData.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <html>
     2 <head>
     3 <body>
     4   <img class="big-horizontal" src="large-image.jpg" style="width:500px;" />
     5   <canvas class="big-vertical" style="width:500px;"></canvas>
     6   <img class="small" src="small-image.gif"></img>
     7   <script>
     8     window.onload = () => {
     9       var canvas = document.querySelector("canvas"), ctx = canvas.getContext("2d");
    10       canvas.width = 1000;
    11       canvas.height = 2000;
    12       ctx.fillStyle = "red";
    13       ctx.fillRect(0, 0, 1000, 2000);
    15       window.opener.postMessage('ready', '*')
    16     }
    17   </script>
    18 </body>
    19 </html>

mercurial