[w3c/screen-orientation] Should the fullscreen pre-lock condition also check for a pending fullscreen request? (Issue #254)

In Spec, the fullscreen pre-lock condition only mentions 

> A user agent SHOULD restrict the use of [lock](https://w3c.github.io/screen-orientation/#dom-screenorientation-lock)() to simple fullscreen documents as a [pre-lock condition](https://w3c.github.io/screen-orientation/#dfn-pre-lock-conditions).

in [9. Interaction with Fullscreen API](https://w3c.github.io/screen-orientation/#fullscreen-interaction).

However, Chrome also allows the lock when there is pending fullscreen request, there was a [webcompat report](https://github.com/webcompat/web-bugs/issues/99745#issuecomment-1248739759) for this, so Gecko adopted the same behavior in [bug 1744288](https://bugzilla.mozilla.org/show_bug.cgi?id=1744288). As some pages already rely on this behavior, perhaps we should define it more clearly into spec? If so, the spec should also define how to handle the lock if the pending fullscreen request is rejected.

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

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

Received on Friday, 10 January 2025 10:01:42 UTC