Camera permissions in error for Firefox only :camera' (value of 'name' member of PermissionDescriptor)

Please provide the following:

  1. SDK Version: v39
  2. Platforms(Android/iOS/web/all): Web, firefox only

Hi,

While accessing to camera, I face a bug that does not occur with Chrome v87 but only with Firefox (v84).

I have the following error:

Unhandled Rejection (TypeError): ‘camera’ (value of ‘name’ member of PermissionDescriptor) is not a valid value for enumeration PermissionName.

Here is the code to check the permissions,

  getPermissionAsync = async () => {
    console.log("getPermissionAsync");
    if (await Camera.isAvailableAsync()) {
      const { status, permissions } = await Permissions.askAsync(Permissions.CAMERA);
      console.log('status cameraPermission: ', permissions);
      if (status === 'granted') {
        // const hasCameraPermission === 'granted';
        this.setState({ hasCameraPermission: 'granted' });

        const camtypes = await Camera.getAvailableCameraTypesAsync();
        console.log("cam types",camtypes);

      } else {
        throw new Error('Camera permission not granted');
      }
    }
  }

While debugging it appears the issues comes from the call Permissions.askAsync(Permissions.CAMERA)

Any idea to fix it ? Is it an expo bug ?