tor-browser

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

fetch-event-respond-with-response-body-with-invalid-chunk-iframe.html (445B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>respond-with-response-body-with-invalid-chunk</title>
      4 <body></body>
      5 <script>
      6 'use strict';
      7 
      8 parent.set_fetch_promise(fetch('body-stream-with-invalid-chunk').then(resp => {
      9    const reader = resp.body.getReader();
     10    const reader_promise = reader.read();
     11    parent.set_reader_promise(reader_promise);
     12    // Suppress our expected error.
     13    return reader_promise.catch(() => {});
     14  }));
     15 </script>