default-enabled-features-navigate.https.html (803B)
1 <!DOCTYPE html> 2 <script src="utils.js"></script> 3 <script src="/common/get-host-info.sub.js"></script> 4 <title>Fenced frame attribution reporting self navigation test</title> 5 6 <body> 7 <script> 8 // This helper function will navigate a fenced frame to a remote origin page. 9 // That redirect should succeed to load and the permissions from the previous page should be in 10 // place. 11 const [key1, key2] = parseKeylist(); 12 13 const result_val = document.featurePolicy.allowsFeature('attribution-reporting'); 14 if (location.origin == get_host_info().ORIGIN) { 15 writeValueToServer(key1, result_val); 16 17 const next_url = getRemoteOriginURL(generateURL( 18 "default-enabled-features-navigate.https.html", [key1, key2])); 19 location.href = next_url; 20 } else { 21 writeValueToServer(key2, result_val); 22 } 23 24 </script> 25 </body>