[w3c/screen-orientation] Does orienation lock should be aborted or ignore when document is hidden in pararel step of 8.3? (Issue #256)

makotokato created an issue (w3c/screen-orientation#256)

In (8.3 Applying an orientation lock ](https://w3c.github.io/screen-orientation/#applying-an-orientation-lock),

> 1. If document stops being [fully active](https://html.spec.whatwg.org/multipage/document-sequences.html#fully-active) while [in parallel](https://html.spec.whatwg.org/multipage/infrastructure.html#in-parallel), and [[[orientationPendingPromise]]](https://w3c.github.io/screen-orientation/#dfn-orientationpendingpromise) is not null, [reject and nullify the current lock promise](https://w3c.github.io/screen-orientation/#dfn-reject-and-nullify-the-current-lock-promise) of document with an "[AbortError](https://webidl.spec.whatwg.org/#aborterror)".
> 2. Let topDocument be document's [top-level browsing context](https://html.spec.whatwg.org/multipage/document-sequences.html#top-level-browsing-context)'s [active document](https://html.spec.whatwg.org/multipage/document-sequences.html#nav-document).

[Common Safety Check](https://w3c.github.io/screen-orientation/#common-safety-checks) describes when document is hidden. But In this section, no document about hidden.

Should we set AbortError to process when document is hidden in this (8.3) step?

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

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

Received on Monday, 21 April 2025 09:08:10 UTC