layout/reftests/canvas/image-rendering-ref.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!DOCTYPE HTML>
     2 <!--
     3     Any copyright is dedicated to the Public Domain.
     4     http://creativecommons.org/licenses/publicdomain/
     5   -->
     6 <html>
     7 <head>
     8   <title>reference image-rendering</title>
     9   <style>
    10     canvas { position:absolute;left:0px;top:0px; }
    11   </style>
    12   <script type="text/javascript">
    13     function draw() {
    14         var canvas = document.getElementById("canvas");
    15         var ctx = canvas.getContext("2d");
    16         ctx.fillStyle = "rgb(255,0,0)";
    17         ctx.fillRect(50,50,200,200);
    18         ctx.fillStyle = "rgb(0,255,0)";
    19         ctx.fillRect(50,50,100,100);
    20     }
    21   </script>
    22 </head>
    23 <body onload="draw();">
    24   <canvas id="canvas" width="300" height="300"></canvas>
    25 </body>
    26 </html>

mercurial