From 571acf3cd55f37205586fb2d16941b86fa04d160 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
This is a work in progress.
- Some features in this specification are supported by only one user agent, and as such, are
- marked as at risk.
-
- As a shorthand, a {{PermissionName}} |name|'s permission state is the
- permission state of a {{PermissionDescriptor}} with its
- {{PermissionDescriptor/name}} member set to |name|.
+ As a shorthand, a {{DOMString}} |name|'s permission state is the permission
+ state of a {{PermissionDescriptor}} with its {{PermissionDescriptor/name}} member set
+ to |name|.
- As a shorthand, requesting permission to use a {{PermissionName}} |name|, is the
- same as requesting permission to use a {{PermissionDescriptor}} with its
+ As a shorthand, requesting permission to use a {{DOMString}} |name|, is the same
+ as requesting permission to use a {{PermissionDescriptor}} with its
{{PermissionDescriptor/name}} member set to |name|.
As a shorthand, prompting the user to choose from options associated with a
- {{PermissionName}} |name|, is the same as prompting the user to choose from those
+ {{DOMString}} |name|, is the same as prompting the user to choose from those
options associated with a {{PermissionDescriptor}} with its {{PermissionDescriptor/name}}
member set to |name|.
@@ -577,9 +566,9 @@
};
dictionary PermissionDescriptor {
- required PermissionName name;
+ required DOMString name;
};
permissionDesc:
- enum PermissionName { - "accelerometer", - "ambient-light-sensor", - "background-fetch", - "background-sync", - "bluetooth", - "camera", - "display-capture", - "geolocation", - "gyroscope", - "magnetometer", - "microphone", - "midi", - "nfc", - "notifications", - "persistent-storage", - "push", - "screen-wake-lock", - "speaker-selection", - "xr-spatial-tracking", - }; --
- Each enumeration value in the {{PermissionName}} enum identifies a powerful feature. -
-- The accelerometer enum value identifies the [[[?accelerometer]]] API [=powerful - feature=]. -
-- The ambient-light-sensor enum value identifies the [[[?ambient-light]]] - [=powerful feature=]. -
-- The background-fetch enum value identifies the [[[?background-fetch]]] - [=powerful feature=]. -
-- The background-sync enum value identifies the [[[?web-background-sync]]] - [=powerful feature=]. -
-- The bluetooth enum value identifies the [[[?web-bluetooth]]] [=powerful - feature=]. -
-- The camera and microphone enum values identify the - [[[?mediacapture-streams]]] [=powerful features=]. -
-- The display-capture enum value identifies the [[[?screen-capture]]] [=powerful - feature=]. -
-- The geolocation enum value identifies the [[[?Geolocation]]] [=powerful - feature=]. -
-- The gyroscope enum value identifies the [[[?gyroscope]]] API [=powerful - feature=]. -
-- The magnetometer enum value identifies the [[[?magnetometer]]] API [=powerful - feature=]. -
-- The midi enum value identifies the [[[?webmidi]]] [=powerful feature=]. -
-- The nfc enum value identifies the [[[?web-nfc]]] [=powerful feature=]. -
-- The notifications enum value identifies the [[[?notifications]]] [=powerful - feature=]. -
-- The persistent-storage enum value identifies the [[[?storage]]] [=powerful - feature=]. -
-- The push enum value identifies the [[[?push-api]]] [=powerful feature=]. -
-- The speaker-selection enum value identifies the [[[?audio-output]]] [=powerful - feature=]. -
-- The xr-spatial-tracking enum value identifies the [[[?webxr]]] Device API - [=powerful feature=]. -
-- The screen-wake-lock enum value identifies the [[[screen-wake-lock]]] - [=powerful feature=]. It is a [=default powerful feature=]. -
-- This [=powerful feature=] only has a single implementation, and therefore, as per the W3C - Process, it is [=at risk=]. -
-