Re: [w3c/permissions] Handle non-fully-active documents (#162)

Thanks @marcoscaceres! Sorry for the delay from my side, I was out for a bit.
I think I'm still a bit concerned if sites will break if we don't send the `onchange` event for the `PermissionState`, so let me try to understand how it's used. Are sites expected to call `permissions.query()` every time they want to use an API that needs permissions, or is it more common for them to query only once and listen to the `onchange` event to update the state?

If it's the latter, I'm worried that sites might lose out on changes (especially to when they lose permission). What would happen if the page tries to use an API without permission? Will it just throw error/never return/etc? Can that potentially be dangerous? I wonder if it might cause sites to just inexplicably break because the permission-granted-path is used instead of no-permission-path, since the site won't be aware of the change.

-- 
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/permissions/issues/162#issuecomment-887188866

Received on Tuesday, 27 July 2021 04:00:36 UTC