content/canvas/crashtests/916128-1.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 <script>
     2 o0 = document.createElement('canvas');
     3 (document.body || document.documentElement).appendChild(o0);
     4 o1 = o0.getContext('2d');
     5 o2 = document.createElement('img');
     6 //o2.src = "image2.png";
     7 o3 = o1.createImageData(0.7409945472006207, 0.8815588599260801);
     8 o1.save();
     9 o1.mozCurrentTransform = [0.18777365986904448, 4, 4, -2048, 3, 32];
    10 o0.width = 0.52;
    11 o1.putImageData(o3, -32, -0.16596290333335356);
    12 o0.toBlob(function() {}, "video/mp4", 16);
    13 </script>

mercurial