*Contact emails*
mar...@marcosc.com

*Explainer*
N/A

*Specification*
https://w3c.github.io/permissions/#permissionstatus-interface

*API spec*
Yes

*Summary*
Adds a new read only attribute "name" to the `PermissionStatus` interface, 
allowing the name of the permission to be gotten after a `PermissionStatus` 
is created.

*Motivation*
When querying multiple permissions simultaneously via the Permissions API, 
it was not possible to identify which PermissionStatus was which, as they 
were lacking a way to identify them (i.e., their "name"). The only way 
around this was to use something like array order or some other external 
index, which is less than ideal.

*Blink component*
Blink > PermissionsAPI

*TAG review*
Not required.

*Risks*
*  Interoperability and Compatibility*
  Can be feature-detected by checking for the existence of the 
PermissionStatus.prototype.name.

  Chrome: No public support (only personal support).

  Gecko: Implemented, shipped in Nightly 
https://bugzilla.mozilla.org/show_bug.cgi?id=1718021

  WebKit: No signal (don't Implement Permissions API)

  Web developers: None

*Debuggability*
No special support is needed.

*Is this feature fully tested by web-platform-tests?*
Yes, to the extent that it can be.

*Flag name*
N/A

*Tracking bug*
https://bugs.chromium.org/p/chromium/issues/detail?id=897309

*Link to entry on the Chrome Platform Status*
Coming soon... 

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/31cc4084-4ec7-4faf-abc4-1ea25f3fc6d9n%40chromium.org.

Reply via email to