Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <!-- Test: Create video, load, play. Add poster frame, load again, poster should show. -->
4 <script>
5 function runTest() {
6 var v = document.createElement('video');
8 var endTest = function() {
9 setTimeout(function(){document.documentElement.className = '';}, 0);
10 };
12 var play =
13 function() {
14 v.removeEventListener('loadeddata', play, false);
15 v.play();
16 }
18 var addPoster = function() {
19 v.removeEventListener('playing', addPoster,false);
20 v.poster = "blue140x100.png";
21 v.addEventListener('loadeddata', endTest, false);
22 v.load();
23 };
25 v.addEventListener('loadeddata',
26 play,
27 false);
28 v.addEventListener('playing',
29 addPoster,
30 false);
31 v.id = 'v';
32 v.src = "black140x100.webm";
33 v.preload = "auto";
34 document.body.appendChild(v);
35 }
37 </script>
38 <body style="background:white;" onload="runTest();">
39 </body>
40 </html>