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 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Media test: seek test 1</title> |
michael@0 | 5 | <script type="text/javascript" src="/MochiKit/Base.js"></script> |
michael@0 | 6 | <script type="text/javascript" src="/MochiKit/DOM.js"></script> |
michael@0 | 7 | <script type="text/javascript" src="/MochiKit/Style.js"></script> |
michael@0 | 8 | <script type="text/javascript" src="/MochiKit/Signal.js"></script> |
michael@0 | 9 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 11 | </head> |
michael@0 | 12 | <body onunload="mediaTestCleanup();"> |
michael@0 | 13 | <pre id="test"> |
michael@0 | 14 | <script class="testbody" type="text/javascript"> |
michael@0 | 15 | |
michael@0 | 16 | function on_metadataloaded() { |
michael@0 | 17 | var v = document.getElementById('v'); |
michael@0 | 18 | var d = Math.round(v.duration*1000); |
michael@0 | 19 | ok(d == 233, "Checking duration: " + d); |
michael@0 | 20 | SimpleTest.finish(); |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 24 | </script> |
michael@0 | 25 | </pre> |
michael@0 | 26 | <video id='v' |
michael@0 | 27 | preload="metadata" |
michael@0 | 28 | src='contentDuration2.sjs' |
michael@0 | 29 | onloadedmetadata='on_metadataloaded();'></video> |
michael@0 | 30 | </body> |
michael@0 | 31 | </html> |