iframe-redirect-without-location.html (755B)
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/resource-loaders.js"></script> 7 <body> 8 <script> 9 promise_test(async t => { 10 const href = new URL('resources/redirect-without-location.py', location.href); 11 await load.iframe(href); 12 const entries = performance.getEntriesByType('resource').filter(({name}) => name.startsWith(href)); 13 assert_equals(entries.length, 1); 14 assert_equals(entries[0].initiatorType, 'iframe'); 15 }, 'Iframes should report resource timing for redirect responses without a location'); 16 </script> 17 </body>