Re: [whatwg/webidl] IDL-level support for permission checks? (Issue #1066)

This could maybe work similar to https://html.spec.whatwg.org/#cereactions, though the IDL steps (method steps, etc.) don't have access to the types involved. So you'd need something like `[Permission=(Promise<undefined>, "webshare")]` I think.

(FWIW, I looked at Storage and Notifications API and neither could use this I think.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1066#issuecomment-973842918

Received on Friday, 19 November 2021 07:59:48 UTC