navigatorcookies-cookieenabled-false-manual.html (588B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>navigator.cookieEnabled false</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <link rel="help" href="https://html.spec.whatwg.org/#dom-navigator-cookieenabled"> 6 <meta name="flags" content="interact"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 10 <h2>Preconditions</h2> 11 <p>Disable cookies in browser settings.</p> 12 13 <script> 14 test(() => { 15 assert_false(navigator.cookieEnabled); 16 }, "navigator.cookieEnabled is false when cookies are disabled"); 17 </script>