tor-browser

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

content-range.sub.window.js (662B)


      1 // META: script=/fetch/orb/resources/utils.js
      2 // META: script=resources/utils.js
      3 
      4 const url =
      5  "http://{{domains[www1]}}:{{ports[http][0]}}/fetch/orb/resources/image.png";
      6 
      7 // Due to web compatibility we filter opaque Response object from the
      8 // fetch() function in the Fetch specification. See Bug 1823877. This
      9 // might be removed in the future.
     10 promise_internal_response_is_filtered(
     11  testFetchNoCors(
     12    url,
     13    { headers: new Headers([["Range", "bytes 10-99"]]) },
     14    header("Content-Range", "bytes 10-99/1010"),
     15    "slice(10,100)",
     16    "status(206)"
     17  ),
     18  "ORB should filter opaque range of image/png not starting at zero, that isn't subsequent"
     19 );