tor-browser

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

inflight-fetch-2.html (966B)


      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 when in BFCache or after
     14 // BFCache.
     15 runTest(sameOriginUrl + '?delayBeforeHeader=2000', false, true,
     16  'Header and body received when in BFCache');
     17 runTest(sameOriginUrl + '?delayBeforeHeader=2000&delayBeforeBody=1500',
     18  false, true,
     19  'Header received when in BFCache and body received after BFCache');
     20 runTest(sameOriginUrl + '?delayBeforeHeader=3500', false, true,
     21  'Header and body received after BFCache');
     22 </script>