docshell/base/crashtests/914521.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/crashtests/914521.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<meta charset="UTF-8">
     1.8 +<script>
     1.9 +
    1.10 +function f()
    1.11 +{
    1.12 +    function spin() {
    1.13 +        for (var i = 0; i < 8; ++i) {
    1.14 +            var x = new XMLHttpRequest();
    1.15 +            x.open('GET', 'data:text/html,' + i, false);
    1.16 +            x.send();
    1.17 +        }
    1.18 +    }
    1.19 +
    1.20 +    window.addEventListener("popstate", spin, false);
    1.21 +    window.close();
    1.22 +    window.location = "#c";
    1.23 +    finish();
    1.24 +}
    1.25 +
    1.26 +function start()
    1.27 +{
    1.28 +    var html = "<script>" + f + "<\/script><body onload=f()>";
    1.29 +    var win = window.open("data:text/html," + encodeURIComponent(html), null, "width=300,height=300");
    1.30 +    win.finish = function() { document.documentElement.removeAttribute("class"); };
    1.31 +}
    1.32 +
    1.33 +</script>
    1.34 +</head>
    1.35 +<body onload="start();"></body>
    1.36 +</html>

mercurial