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