This is partially editorial (just changing how algorithms check
permissions), but also has a couple of normative changes:
A change from boolean writable to a enum, with currently "read"
and "readwrite" options. This is to keep open the possibility for
write-only handles as discussed in #119.
Changes from NotAllowedError to SecurityError in a couple of places,
to better align with how other APIs behave.
And of course the integration with navigator.permissions.query,
although that is unlikely to be implemented in chrome any time soon,
as a lot of the infra for that is missing in chrome.
This is partially editorial (just changing how algorithms check permissions), but also has a couple of normative changes:
boolean writable
to a enum, with currently "read" and "readwrite" options. This is to keep open the possibility for write-only handles as discussed in #119.This fixes #120.
Preview | Diff