-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename PermissionName enum to PowerfulFeatureName #286
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the analog from Permissions Policy would be "policy controlled features", so this change brings us closer in alignment, I guess.
Personal opinion: It would be nicer to just call it FeatureName
, and have an implied "Powerful", but I guess that's awkward with "powerful feature" everywhere else.
Can go with FeatureName - it’s less 💪. Will update. |
I might notify various browser vendors of this change before merging, and send patches where appropriate. |
This change will make it more important to unify the list of features between this spec and https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md. It was easier to get away with separate lists when this spec's enum was named something specific to permissions, but if it's named very generally, it needs to actually cover all the "features". |
Right, which is why I originally renamed it to "PowerfulFeatureName". Our spec only deals with APIs that "prompt" (i.e., "powerful features"), not with all the Permission Policy "features". There is only overlap in a small number of cases (e.g., geolocation, notification, push). I might change it back to the longer name, to make it more clear. |
Filed gecko bug https://bugzilla.mozilla.org/show_bug.cgi?id=1737750 and sent patch. |
Please see also my belated comment on PR #264 (relevant portion copied here for convenience): WRT the text this PR #264 added to the Permissions spec, it seems to be only implied that where a given feature is both a powerful feature, and is also subject to permissions policy, that the feature's "policy-controlled feature token" (as defined in the feature's specification), and in the Permissions spec's E.g., the strings "camera" and "microphone" are both defined as powerful feature names and are also declared as policy-controlled feature tokens (aka "strings"). Additionally, I find this statement in the text this PR added confusing:
...because: neither "sync-xhr" nor "gamepad" are permission names (i.e., enum values within |
Superseded by #353 |
The
PermissionName
is a misnomer - it actually identifies "powerful features" for which a permission status can be queries.To bring some sanity, I'm renaming
PermissionName
enum toPowerfulFeatureName
.The following tasks have been completed:
Implementation commitment:
Preview | Diff