layout/reftests/css-blending/blend-canvas-ref.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <html>
     6 <script type="text/javascript">
     7 window.onload = function() {
     8   var c = document.getElementById("b");
     9   var ctx = c.getContext("2d");
    10   ctx.fillStyle = "rgb(0,0,0)";
    11   ctx.fillRect(0,0,100,100);
    12 }
    13 </script>
    14 <style>
    15 #a {
    16   width: 200px;
    17   height: 200px;
    18   background-color: rgb(0,255,0);
    19 }
    20 #b {
    21   width: 100px;
    22   height: 100px;
    23 }
    24 </style>
    25 <div id="a">
    26   <canvas width="100" height="100" id="b"/>
    27 </div>
    28 </html>

mercurial