permission-geolocation-test-runner.html (792B)
1 <!DOCTYPE html> 2 <title>Fenced frame content to report the result of navigator.geolocation.getCurrentPosition()</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="/resources/testdriver.js"></script> 6 <script src="/resources/testdriver-vendor.js"></script> 7 <script src="utils.js"></script> 8 9 <body> 10 <script> 11 12 window.runTest = async (fenced_frame_url) => { 13 const [permission_geolocation_key] = parseKeylist(); 14 15 attachFencedFrame(generateURL(fenced_frame_url, [permission_geolocation_key])); 16 const actual_result = await nextValueFromServer(permission_geolocation_key); 17 18 assert_equals( 19 actual_result, 'result: denied', 20 'geolocation permission is not permitted for fenced frames.'); 21 }; 22 </script> 23 </body>