header-secFetchDest-inner.html (876B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/common/get-host-info.sub.js"></script> 4 <script src="utils.js"></script> 5 <title>Fenced frame content to report the value of `Sec-Fetch-Dest` header</title> 6 7 <body> 8 <script> 9 (() => { 10 // This file is meant to run in a <fencedframe>. It reports back to the 11 // outermost page the value of `Sec-Fetch-Dest` in the request header for 12 // nested iframes inside a fenced frame. 13 const [sec_fetch_dest_value_key] = parseKeylist(); 14 const https_origin = get_host_info().HTTPS_REMOTE_ORIGIN; 15 const https_origin_url = 16 getRemoteOriginURL( 17 generateURL( 18 'check-header-sec-fetch-dest.py', 19 [sec_fetch_dest_value_key])); 20 21 const iframe = document.createElement('iframe'); 22 iframe.src = https_origin_url; 23 document.body.append(iframe); 24 })(); 25 </script> 26 </body>