[w3c/screen-orientation] Should the fullscreen pre-lock condition also check for fullscreen state of parent document? (Issue #255)

Similar to #254. Another unclear point is in [the `unlock() aborts a pending lock request across documents` test in unlock.html](https://github.com/web-platform-tests/wpt/blob/1e1305e5a8e8c94ac9c7527e1824fc8f73a6ced1/screen-orientation/unlock.html#L40-L55). The test expects the lock to be allowed when the parent document is in fullscreen. I am not sure if this is a test bug, or an intentional behavior.

If this is intentional behavior, it would be good if we could define this more clearly in the spec. And perhaps we should only allow it when the parent document is same-origin; otherwise, the fullscreen state could be leaked to the cross-origin iframe? Also we would also need to define how the handle the lock when the parent document exits fullscreen.

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

Message ID: <w3c/screen-orientation/issues/255@github.com>

Received on Friday, 10 January 2025 10:17:34 UTC