tor-browser

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

status.sub.window.js (994B)


      1 // META: script=/fetch/orb/resources/utils.js
      2 // META: script=resources/utils.js
      3 
      4 const path = "http://{{domains[www1]}}:{{ports[http][0]}}/fetch/orb/resources";
      5 
      6 // Due to web compatibility we filter opaque Response object from the
      7 // fetch() function in the Fetch specification. See Bug 1823877. This
      8 // might be removed in the future.
      9 promise_internal_response_is_filtered(
     10  testFetchNoCors(
     11    `${path}/data.json`,
     12    null,
     13    contentType("application/json"),
     14    "status(206)"
     15  ),
     16  "ORB should filter opaque-response-blocklisted MIME type with status 206"
     17 );
     18 
     19 // Due to web compatibility we filter opaque Response object from the
     20 // fetch() function in the Fetch specification. See Bug 1823877. This
     21 // might be removed in the future.
     22 promise_internal_response_is_filtered(
     23  testFetchNoCors(
     24    `${path}/data.json`,
     25    null,
     26    contentType("application/json"),
     27    "status(302)"
     28  ),
     29  "ORB should filter opaque range of image/png not starting at zero, that isn't subsequent"
     30 );