[w3c/permissions] Clearly require use of 'permission state' to be 'in parallel' (Issue #453)

@reillyeon reports in https://github.com/WICG/idle-detection/pull/55#discussion_r1752504934 that browsers retrieve the permission state asynchronously, so use of permission state in specs needs to be 'in parallel'. But https://w3c.github.io/permissions/#dfn-permission-state doesn't have any indication of this fact, so it's easy to write specifications that incorrectly promise to return results an event-loop-turn early.

Ideally this indication would integrate with [Strudy](https://github.com/w3c/strudy/)'s parallel algorithm checking. cc/ @tidoust 

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

Message ID: <w3c/permissions/issues/453@github.com>

Received on Tuesday, 10 September 2024 19:45:47 UTC