1
0
Fork 0
firefox/testing/web-platform/tests/fenced-frame/resources/permission-geolocation-test-runner.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
792 B
HTML

<!DOCTYPE html>
<title>Fenced frame content to report the result of navigator.geolocation.getCurrentPosition()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="utils.js"></script>
<body>
<script>
window.runTest = async (fenced_frame_url) => {
const [permission_geolocation_key] = parseKeylist();
attachFencedFrame(generateURL(fenced_frame_url, [permission_geolocation_key]));
const actual_result = await nextValueFromServer(permission_geolocation_key);
assert_equals(
actual_result, 'result: denied',
'geolocation permission is not permitted for fenced frames.');
};
</script>
</body>