tor-browser

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

automatic-beacon-unfenced-page.html (838B)


      1 <!DOCTYPE html>
      2 <title>Page navigated to by an _unfencedTop navigation</title>
      3 
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="utils.js"></script>
      7 <script src="/common/get-host-info.sub.js"></script>
      8 
      9 <body>
     10 <script>
     11  promise_test(async(t) => {
     12    // This page is navigated to from an '_unfencedTop' navigation by
     13    // '../automatic-beacon-unfenced-top.https.html'. An automatic beacon will
     14    // have been sent as a result of the navigation.
     15    const beacon_data = "This is the beacon data!";
     16    const beacon_initiator_origin = await nextBeacon(
     17        "reserved.top_navigation_commit", beacon_data);
     18    assert_equals(beacon_initiator_origin, get_host_info().HTTPS_ORIGIN + "," +
     19        get_host_info().HTTPS_REMOTE_ORIGIN + "/");
     20  });
     21 </script>
     22 </body>