tor-browser

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

test_originWithCaret.js (370B)


      1 /**
      2 * Any copyright is dedicated to the Public Domain.
      3 * http://creativecommons.org/publicdomain/zero/1.0/
      4 */
      5 
      6 "use strict";
      7 
      8 async function testSteps() {
      9  Assert.throws(
     10    () => {
     11      const principal = getPrincipal("http://example.com^123");
     12      getSimpleDatabase(principal);
     13    },
     14    /NS_ERROR_MALFORMED_URI/,
     15    "^ is not allowed in the hostname"
     16  );
     17 }