tor-browser

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

__host.document-cookie.html (1898B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script src="/cookies/resources/cookie-helper.sub.js"></script>
      5 <script>
      6  ["", "domain="+document.location.hostname, "MaxAge=10", "HttpOnly"].forEach(extraParams => {
      7    // Without 'secure'
      8    set_prefixed_cookie_via_dom_test({
      9      prefix: "__Host-",
     10      params: "Path=/;" + extraParams,
     11      shouldExistInDOM: false,
     12      shouldExistViaHTTP: false,
     13      title: "__Host: Non-secure origin: 'Path=/;" + extraParams + "'"
     14    });
     15 
     16    set_prefixed_cookie_via_dom_test({
     17      prefix: "__HoSt-",
     18      params: "Path=/;" + extraParams,
     19      shouldExistInDOM: false,
     20      shouldExistViaHTTP: false,
     21      title: "__HoSt: Non-secure origin: 'Path=/;" + extraParams + "'"
     22    });
     23 
     24    // With 'secure'
     25    set_prefixed_cookie_via_dom_test({
     26      prefix: "__Host-",
     27      params: "Secure; Path=/;" + extraParams,
     28      shouldExistInDOM: false,
     29      shouldExistViaHTTP: false,
     30      title: "__Host: Non-secure origin: 'Secure; Path=/;" + extraParams + "'"
     31    });
     32 
     33    set_prefixed_cookie_via_dom_test({
     34      prefix: "__HoSt-",
     35      params: "Secure; Path=/;" + extraParams,
     36      shouldExistInDOM: false,
     37      shouldExistViaHTTP: false,
     38      title: "__HoSt: Non-secure origin: 'Secure; Path=/;" + extraParams + "'"
     39    });
     40  });
     41 
     42  set_prefixed_cookie_via_dom_test({
     43    prefix: "__Host-",
     44    params: "Secure; Path=/cookies/resources/list.py",
     45    shouldExistInDOM: false,
     46    shouldExistViaHTTP: false,
     47    title: "__Host: Non-secure origin: 'Secure; Path=/cookies/resources/list.py'"
     48  });
     49 
     50  set_prefixed_cookie_via_dom_test({
     51    prefix: "__HoSt-",
     52    params: "Secure; Path=/cookies/resources/list.py",
     53    shouldExistInDOM: false,
     54    shouldExistViaHTTP: false,
     55    title: "__HoSt: Non-secure origin: 'Secure; Path=/cookies/resources/list.py'"
     56  });
     57 </script>