tor-browser

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

iframe-sequence-of-events.html (871B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Test the sequence of events when reporting iframe timing.</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="resources/frame-timing.js"></script>
      7 <script src="/common/utils.js"></script>
      8 <script src="/common/get-host-info.sub.js"></script>
      9 <body>
     10 <script>
     11  test_frame_timing_before_load_event('iframe');
     12 
     13  const host_info = get_host_info();
     14  const types = ['ORIGIN', 'HTTP_REMOTE_ORIGIN', 'HTTP_NOTSAMESITE_ORIGIN'];
     15  for (const a of types) {
     16    for (const b of types) {
     17      for (const tao of [true, false]) {
     18        test_frame_timing_change_src('iframe', host_info[a], host_info[b], tao,
     19        `Changing the src of an iframe (${a}->${b}) ${tao ? "with" : "without"} TAO should result in an RT entry`);
     20      }
     21    }
     22  }
     23 </script>
     24 </body>