tor-browser

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

sse_frontend.html (1122B)


      1 <!-- Any copyright is dedicated to the Public Domain.
      2     http://creativecommons.org/publicdomain/zero/1.0/ -->
      3 <!doctype HTML>
      4 <html>
      5  <head>
      6    <meta charset="utf-8"/>
      7    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
      8    <meta http-equiv="Pragma" content="no-cache" />
      9    <meta http-equiv="Expires" content="0" />
     10    <title>SSE Inspection Test Page</title>
     11  </head>
     12  <body>
     13    <h1>SSE Inspection Test Page</h1>
     14    <script type="text/javascript">
     15      "use strict";
     16 
     17      /* exported openConnection */
     18      function openConnection() {
     19        return new Promise(resolve => {
     20          const es = new EventSource("sse_backend.sjs");
     21          es.onmessage = function () {
     22            es.close();
     23            resolve();
     24          };
     25        });
     26      }
     27    </script>
     28    <iframe id="in-process-frame"  src="https://example.com/browser/devtools/shared/commands/resource/tests/sse_frontend_iframe.html"> </iframe>
     29    <iframe id="out-process-frame" src="https://example.org/browser/devtools/shared/commands/resource/tests/sse_frontend_iframe.html"></iframe>
     30  </body>
     31 </html>