content/media/test/crashtests/691096-1.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head> 
     4 <script>
     5 var ITERATIONS = 200;
     7 function stoptest ()
     8 {
     9    document.documentElement.removeAttribute("class");
    10 }
    12 function boom()
    13 {
    14     for (var i = 0; i < ITERATIONS; ++i) {
    15         a = document.createElementNS("http://www.w3.org/1999/xhtml", "audio");
    16         a.addEventListener("loadedmetadata", stoptest);
    17         a.setAttributeNS(null, "autoplay", "");
    18         a.setAttributeNS(null, "src", "sound.ogg");
    19     }
    20     setTimeout(stoptest, 250);
    21 }
    23 </script>
    24 </head>
    25 <body onload="boom();"></body>
    26 </html>

mercurial