tor-browser

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

html_frame-subdocument.html (1395B)


      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    <script type="text/javascript">
     19      "use strict";
     20 
     21      function performXhrRequest() {
     22        const xhr = new XMLHttpRequest();
     23        xhr.open("GET", "xhr_request", true);
     24        xhr.send();
     25      }
     26 
     27      function performFetchRequest() {
     28        fetch("fetch_request");
     29      }
     30 
     31      function performBeaconRequest() {
     32        navigator.sendBeacon("beacon_request");
     33      }
     34 
     35      performXhrRequest();
     36      performFetchRequest();
     37 
     38      // Perform some requests with async stacks
     39      Promise.resolve().then(function performPromiseFetchRequest() {
     40        fetch("promise_fetch_request");
     41        setTimeout(function performTimeoutFetchRequest() {
     42          fetch("timeout_fetch_request");
     43 
     44          // Finally, send a beacon request
     45          performBeaconRequest();
     46        }, 0);
     47      });
     48    </script>
     49  </body>
     50 </html>