tor-browser

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

inflight-fetch-1.html (833B)


      1 <!doctype html>
      2 <meta name="timeout" content="long">
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/common/utils.js"></script>
      6 <script src="/common/dispatcher/dispatcher.js"></script>
      7 <script src="../resources/helper.sub.js"></script>
      8 <script src="../resources/inflight-fetch-helper.js"></script>
      9 <script>
     10 // Check whether the page is BFCached when there are in-flight network requests
     11 // at the time of navigation.
     12 
     13 // Successful fetch completion with header received before BFCached.
     14 runTest(sameOriginUrl + '?delayBeforeBody=2000', false, true,
     15  'Header received before BFCache and body received when in BFCache');
     16 runTest(sameOriginUrl + '?delayBeforeBody=3500', false, true,
     17  'Header received before BFCache and body received after BFCache');
     18 </script>