Firefox permission: 'name' member of PermissionDescriptor 'camera' is not a valid value for enumeration PermissionName
问题 I'm making a web app that needs to check whether user camera access permission has been granted or not using permission query. I have tried the code: navigator.permissions.query({name:'camera'}).then(function(result) { console.log(result); }); It ran fine on Google Chrome 70 but gave me an error on firefox: TypeError: 'name' member of PermissionDescriptor 'camera' is not a valid value for enumeration PermissionName. I have been searching for this issue but nothing helped. Can anyone help me