http-equiv-accept-ch-iframe.https.html (996B)
1 <html> 2 <meta http-equiv="Accept-CH" content="Sec-CH-Device-Memory, Device-Memory, Sec-CH-DPR, DPR, Sec-CH-Viewport-Width, Viewport-Width"> 3 <title>Accept-CH http-equiv iframe test</title> 4 <body> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/common/get-host-info.sub.js"></script> 8 <script src="/client-hints/resources/export.js"></script> 9 <script src="resources/feature-policy-navigation.js"></script> 10 <script> 11 (async () => { 12 await test_frame( 13 "HTTPS_ORIGIN", 14 expect_iframe_no_hints, 15 "", 16 "Client hints loaded on same-origin iframe should include hints with a default permissions policy of" + 17 "self and *, but the http-equiv meta tag has a bug and it doesn't impact iframes."); 18 await test_frame( 19 "HTTPS_REMOTE_ORIGIN", 20 expect_iframe_no_hints, 21 "", 22 "Client hints loaded on cross-origin iframe only include hints with a default permissions policy of *."); 23 })(); 24 </script> 25 </body> 26 </html>