tor-browser

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

cookie.html (641B)


      1 <!doctype html>
      2 <title>cookies work in default browse settings</title>
      3 <link rel="author" title="Intel" href="http://www.intel.com">
      4 <link rel="help" href="https://html.spec.whatwg.org/#dom-document-cookie">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 
      8 <script>
      9  test(t => {
     10    t.add_cleanup(() => {
     11      let date = new Date();
     12      date.setTime(date.getTime() - 10000);
     13      document.cookie = "name=''; expires=" + date.toGMTString();
     14    });
     15    document.cookie = "name=test_cookie";
     16    assert_not_equals(document.cookie.match(/name=test_cookie/), null);
     17  });
     18 </script>