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

This is similar to something we drafted in https://wicg.github.io/nav-speculation/prerendering.html#delay-while-prerendering . If we can find enough specs that would use this then I'd be supportive. I suspect it might involve technically-backward-incompatible changes to exception ordering.

I would prefer starting only with the Promise variant, although gathering data on what specs would use this might change my mind there.

I don't understand why the type would need to be included in the arguments. I think you could just write in the spec for [Permission] "If the return type of the operation is X, do Y."

-- 
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-974161269

Received on Friday, 19 November 2021 15:19:52 UTC