[w3c/push-api] Integrate with Permission spec (#341)

Defers to permission spec to handle permission request and use Permission spec's `PermissionStatus` enum instead (it's the same values).

I'm borrowing (ok, stealing👹) the nice definition of "express permission" and moving it to the Permission Spec, so we can use it more widely. Is that ok?

@beverloo, @martinthomson: I need to double-check, but asking for permission from the service worker doesn't seem like it should be possible. We should always say "denied".  

The following tasks have been completed:

 * [ ] Modified Web platform tests (link to pull request)

Implementation commitment:

 * [ ] WebKit (https://bugs.webkit.org/show_bug.cgi?id=)
 * [ ] Chromium (https://bugs.chromium.org/p/chromium/issues/detail?id=)
 * [ ] Gecko (https://bugzilla.mozilla.org/show_bug.cgi?id=)

You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/push-api/pull/341


-- Commit Summary --

  * <a href="https://github.com/w3c/push-api/pull/341/commits/beca6f947c01fa2ea7c07938f0acc411af691c9f">Integrate with Permissions API</a>

-- File Changes --

    M index.html (92)

-- Patch Links --

https://github.com/w3c/push-api/pull/341.patch

https://github.com/w3c/push-api/pull/341.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/push-api/pull/341

Received on Wednesday, 13 October 2021 10:41:58 UTC