tor-browser

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

referrer.any.js (396B)


      1 // META: script=constants.sub.js
      2 
      3 async_test(t => {
      4  const ws = new WebSocket(SCHEME_DOMAIN_PORT + "/referrer");
      5  ws.onmessage = t.step_func_done(e => {
      6    assert_equals(e.data, "MISSING AS PER FETCH");
      7    ws.close();
      8  });
      9 
     10  // Avoid timeouts in case of failure
     11  ws.onclose = t.unreached_func("close");
     12  ws.onerror = t.unreached_func("error");
     13 }, "Ensure no Referer header is included");