js/xpconnect/crashtests/752038.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html class="reftest-wait">
     2 <head>
     3 <script>
     5 // document.write() doesn't play well with reftest-wait, so we need to use an
     6 // iframe.
     7 //
     8 // This test is designed to trigger an assertion, but that assertion depends on
     9 // non-deterministic hashtable iteration ordering. The assertion seems to happen
    10 // around 80% of the time, so we just run the operation 10 times.
    12 var i = 0;
    13 function iterate() {
    14   ++i;
    15   if (i < 10) {
    16     document.getElementById("f").src = "752038-iframe.html";
    17   } else {
    18     document.documentElement.removeAttribute("class");
    19   }
    20 }
    21 window.addEventListener('message', iterate, false);
    23 </script>
    24 </head>
    25 <body>
    26 <iframe id="f" src="752038-iframe.html"></iframe>
    27 </body>
    28 </html>

mercurial