tor-browser

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

secure_context.html (640B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <script src="/resources/testharness.js"></script>
      5  <script src="/resources/testharnessreport.js"></script>
      6  <script>
      7    test(t => {
      8      assert_false('registerProtocolHandler' in navigator);
      9      assert_equals(navigator.registerProtocolHandler, undefined);
     10    }, "navigator.registerProtocolHandler does not exist in non-secure contexts.");
     11 
     12    test(t => {
     13      assert_false('unregisterProtocolHandler' in navigator);
     14      assert_equals(navigator.unregisterProtocolHandler, undefined);
     15    }, "navigator.unregisterProtocolHandler does not exist in non-secure contexts.");
     16  </script>
     17 </head>
     18 </html>