← Back to release summary

PermissionStatus.prototype.name

Category
Miscellaneous
Type
Chromium catches up
Status
Enabled by default (Chrome 97)
Intent stage
Shipped

Summary

Adds a read only attribute "name" to the `PermissionStatus` interface, allowing the name of the permission to be gotten after a `PermissionStatus` is created. 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.

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.

Standards & signals

View on chromestatus.com