layout/base/crashtests/735943.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>
     6 var asvg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><script xlink:href="data:text/javascript," /><rect width="100" height="100" fill="green"><set attributeName="fill" attributeType="CSS" to="red" begin="0s" end="2s" dur="2s" fill="remove" /></rect></svg>';
     8 function boom()
     9 {
    10   var f = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); f.src = "data:text/html,1"; document.body.appendChild(f);
    11   var w;
    13   setTimeout(function() {
    14     w = window.open("data:text/html,<body onload=window.close()>", "_blank", "width=200,height=200");
    15     // Note that most of the code below will execute before the window appears, and in fact before "w" becomes non-null.
    16   }, 0);
    18   setTimeout(function() {
    19     setTimeout(function() { }, 0);
    20     f.contentWindow.location = "data:image/svg+xml," + encodeURIComponent(asvg);
    22     setTimeout(function() {
    23       setTimeout(function() {
    24         setTimeout(function() {
    25           document.body.style.MozColumnCount = "2";
    26           document.documentElement.className = "";
    27         }, 20);
    28       }, 0);
    29     }, 0);
    30   }, 20);
    31 }
    33     window.addEventListener("MozReftestInvalidate", boom, false);
    34 </script>
    35 </head>
    37 <body></body>
    38 </html>

mercurial