tor-browser

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

historical.https.window.js (449B)


      1 [
      2  "registerContentHandler",
      3  "isProtocolHandlerRegistered",
      4  "isContentHandlerRegistered",
      5  "unregisterContentHandler"
      6 ].forEach(method => {
      7  test(() => {
      8    assert_false(method in self.navigator);
      9  }, method + "() is removed");
     10 });
     11 
     12 test(() => {
     13  let called = false;
     14  self.navigator.registerProtocolHandler("web+test", "%s", { toString: () => called = true });
     15  assert_false(called);
     16 }, "registerProtocolHandler has no third argument");