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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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