Re: [deviceorientation] "No permission" and "sensors unable to provide readings" are distinguishable (#148)

I think this also concerns the Permissions Policy integration, even if tangentially.

Permissions Policy integration does not fall under the same _"a web app should not be able to distinguish between the user rejecting permission to use a sensor/capability, and the sensor/capability not being present"_ TAG guideline, but most other specs throw a DOM exception like NotAllowedError when a Permissions Policy check fails, whereas this specification just avoids firing any events.

Both Blink and WebKit seem to do this at the moment, but WebKit had to add a workaround for at least one domain affected by this behavior: https://github.com/WebKit/WebKit/blob/09ad6a20c559b27ada2b2e8bf859dc90930fb23f/Source/WebCore/page/LocalDOMWindow.cpp#L2194



-- 
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/148#issuecomment-2020382882 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 26 March 2024 13:06:05 UTC