tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

doc_force_cc.html (731B)


      1 <!-- Any copyright is dedicated to the Public Domain.
      2     http://creativecommons.org/publicdomain/zero/1.0/ -->
      3 <!doctype html>
      4 
      5 <html>
      6  <head>
      7    <meta charset="utf-8"/>
      8    <title>Performance tool + cycle collection test page</title>
      9  </head>
     10 
     11  <body>
     12    <script type="text/javascript">
     13    "use strict";
     14 
     15    /* global test */
     16    window.test = function() {
     17      document.body.expando1 = { cycle: document.body };
     18      SpecialPowers.Cu.forceCC();
     19 
     20      document.body.expando2 = { cycle: document.body };
     21      SpecialPowers.Cu.forceCC();
     22 
     23      document.body.expando3 = { cycle: document.body };
     24      SpecialPowers.Cu.forceCC();
     25 
     26      setTimeout(window.test, 100);
     27    };
     28    test();
     29    </script>
     30  </body>
     31 
     32 </html>