docshell/base/crashtests/914521.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <meta charset="UTF-8">
     5 <script>
     7 function f()
     8 {
     9     function spin() {
    10         for (var i = 0; i < 8; ++i) {
    11             var x = new XMLHttpRequest();
    12             x.open('GET', 'data:text/html,' + i, false);
    13             x.send();
    14         }
    15     }
    17     window.addEventListener("popstate", spin, false);
    18     window.close();
    19     window.location = "#c";
    20     finish();
    21 }
    23 function start()
    24 {
    25     var html = "<script>" + f + "<\/script><body onload=f()>";
    26     var win = window.open("data:text/html," + encodeURIComponent(html), null, "width=300,height=300");
    27     win.finish = function() { document.documentElement.removeAttribute("class"); };
    28 }
    30 </script>
    31 </head>
    32 <body onload="start();"></body>
    33 </html>

mercurial