tor-browser

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

html_frame-test-page.html (1451B)


      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    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
      9    <meta http-equiv="Pragma" content="no-cache" />
     10    <meta http-equiv="Expires" content="0" />
     11    <title>Network Monitor test page</title>
     12    <link rel="stylesheet" type="text/css" href="stylesheet_request" />
     13  </head>
     14 
     15  <body>
     16    <p>Request frame test</p>
     17    <img src="img_request" />
     18    <iframe src="html_frame-subdocument.html"></iframe>
     19    <script type="text/javascript">
     20      "use strict";
     21 
     22      function performXhrRequest() {
     23        const xhr = new XMLHttpRequest();
     24        xhr.open("GET", "xhr_request", true);
     25        xhr.send();
     26      }
     27 
     28      function performFetchRequest() {
     29        fetch("fetch_request");
     30      }
     31 
     32      function performBeaconRequest() {
     33        navigator.sendBeacon("beacon_request");
     34      }
     35 
     36      performXhrRequest();
     37      performFetchRequest();
     38 
     39      // Perform some requests with async stacks
     40      Promise.resolve().then(function performPromiseFetchRequest() {
     41        fetch("promise_fetch_request");
     42        setTimeout(function performTimeoutFetchRequest() {
     43          fetch("timeout_fetch_request");
     44 
     45          // Finally, send a beacon request
     46          performBeaconRequest();
     47        }, 0);
     48      });
     49    </script>
     50  </body>
     51 </html>