tor-browser

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

trailing-dot.https.sub.any.js (1388B)


      1 // META: global=window,worker
      2 // META: script=/fetch/metadata/resources/helper.js
      3 
      4 // Site
      5 promise_test(t => {
      6  return validate_expectations_custom_url("https://{{host}}.:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", {}, {
      7          "site": "cross-site",
      8          "user": "",
      9          "mode": "cors",
     10          "dest": "empty"
     11        }, "Fetching a resource from the same origin, but spelled with a trailing dot.");
     12 }, "Fetching a resource from the same origin, but spelled with a trailing dot.");
     13 
     14 promise_test(t => {
     15  return validate_expectations_custom_url("https://{{hosts[][www]}}.:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", {}, {
     16          "site": "cross-site",
     17          "user": "",
     18          "mode": "cors",
     19          "dest": "empty"
     20        }, "Fetching a resource from the same site, but spelled with a trailing dot.");
     21 }, "Fetching a resource from the same site, but spelled with a trailing dot.");
     22 
     23 promise_test(t => {
     24  return validate_expectations_custom_url("https://{{hosts[alt][www]}}.:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", {}, {
     25          "site": "cross-site",
     26          "user": "",
     27          "mode": "cors",
     28          "dest": "empty"
     29        }, "Fetching a resource from a cross-site host, spelled with a trailing dot.");
     30 }, "Fetching a resource from a cross-site host, spelled with a trailing dot.");