permissionsstatus-name.html (418B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Test PermissionStatus's name attribute.</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <div id="log"></div> 7 8 <script> 9 promise_test(async () => { 10 const result = await navigator.permissions.query({ 11 name: "geolocation", 12 }); 13 assert_equals(result.name, "geolocation", "Name was geolocation"); 14 }); 15 </script>