layout/reftests/canvas/674003-alpha-radial-gradient-superlum-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 <body bgcolor="orange">
     2     <canvas width="300" height="300" id="testcase-canvas-dest"></canvas>
     3   <script>
     4     const kTransparent = "rgba(0%, 100%, 100%, 0.5)";
     6     cx2 = document.getElementById('testcase-canvas-dest').getContext('2d');
     7     cx2.fillStyle = kTransparent;
     8     cx2.fillRect(0,0,100,20);
     9   </script>
    11 </window>

mercurial