tor-browser

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

doc-scripts.html (1368B)


      1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      2    - License, v. 2.0. If a copy of the MPL was not distributed with this
      3    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      4 <!DOCTYPE html>
      5 <html>
      6  <head>
      7    <meta charset="utf-8"/>
      8    <title>Debugger test page</title>
      9  </head>
     10 
     11  <body>
     12    <button onclick="simple()">Click me!</button>
     13    <script src="simple1.js"></script>
     14    <script src="simple2.js"></script>
     15    <script src="simple3.js"></script>
     16    <script src="long.js"></script>
     17    <script>
     18      // This inline script allows this HTML page to show up as a
     19      // source. It also needs to introduce a new global variable so
     20      // it's not immediately garbage collected.
     21      inline_script = function () { var x = 5; };
     22      inline_script();
     23    </script>
     24    <script>
     25      // This is a second inline script element whose breakpoints won't be
     26      // known until after the script element has been added.
     27      var x = 3;
     28      // XXX: This second inline script is only here to avoid intermittent
     29      // failures on browser_dbg-breakpoints-reloading.js which occur when we
     30      // try to set a breakpoint on the line `var x = 3;` above.
     31      // See Bug 1592839.
     32      inline_script2 = function () { var x = 5; };
     33      window.onkeypress = function keyListener() { };
     34    </script>
     35  </body>
     36 </html>