tor-browser

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

serializations.js (954B)


      1 const urls = {
      2  invalid: [
      3    "",
      4    "not-valid",
      5  ],
      6  opaque: [
      7    "about:blank",
      8    "data:text/plain,opaque",
      9    "weird-protocol:whatever",
     10    "weird-hierarchical-protocol://host/path?etc",
     11    "blob:weird-protocol:whatever",
     12    "blob:weird-hierarchical-protocol://host/path?etc",
     13  ],
     14  tuple: [
     15    "http://site.example",
     16    "https://site.example",
     17    "https://site.example:123",
     18    "http://sub.site.example",
     19    "https://sub.site.example",
     20    "https://sub.site.example:123",
     21    "https://xn--mlauted-m2a.example",
     22    "ftp://ftp.example",
     23    "ws://ws.example",
     24    "wss://wss.example",
     25    "https://trailing.slash/",
     26    "https://user:pass@site.example",
     27    "https://has.a.port:1234/and/path",
     28    "https://ümlauted.example",
     29    "file:///path/to/a/file.txt",
     30    "blob:https://example.com/some-guid",
     31    "ftp://example.com/",
     32    "https://example.com/path?query#fragment",
     33    "https://127.0.0.1/",
     34    "https://[::1]/",
     35  ],
     36 };