[w3c/permissions] feat(algorithms): allow calling with a PermissionName (#115)

Instead of forcing specs for simple permissions to write out a permission
descriptor. This partially fixes @annevk's objection that writing `{name: "persistent-storage"}` in a spec doesn't formally create a WebIDL dictionary instance, although we'll still need to formalize syntax like that for more complicated descriptors.

Preview at https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/jyasskin/permissions/permission-name-shorthand/index.bs#reading-current-states. I'm not sure the best place to define this. I want folks who click the link to, say, https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/jyasskin/permissions/permission-name-shorthand/index.bs#request-permission-to-use to find the definitions of the shorthands (so a separate "shorthands" section is out), and I don't want to make every spec write out `<a for="PermissionName">request permission to use</a>` to disambiguate the two definitions (so direct links to the shorthand are out). The wording doesn't fit well right next to the main definition, so I put it below.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/permissions/pull/115

-- Commit Summary --

  * feat(algorithms): allow calling with a PermissionName

-- File Changes --

    M index.bs (21)

-- Patch Links --

https://github.com/w3c/permissions/pull/115.patch
https://github.com/w3c/permissions/pull/115.diff

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/115

Received on Wednesday, 27 July 2016 15:20:47 UTC