tor-browser

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

http-localhost-url.https.html (801B)


      1 <!DOCTYPE html>
      2 <title>Test navigate fenced frame to http://localhost URL</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/utils.js"></script>
      6 <script src="resources/utils.js"></script>
      7 <script src="/common/utils.js"></script>
      8 <script src="/common/get-host-info.sub.js"></script>
      9 
     10 <body>
     11 <script>
     12 promise_test(async (t) => {
     13  const key = token();
     14  const url = generateURL("http://localhost:" + get_host_info().HTTP_PORT +
     15      "/fenced-frame/resources/embeddee.html", [key]);
     16  attachFencedFrame(url);
     17 
     18  const result = await nextValueFromServer(key);
     19  assert_equals(result, "PASS",
     20      "The fenced frame should load a http://localhost URL.");
     21 }, 'http://localhost URLs can load');
     22 
     23 </script>
     24 </body>
     25 </html>