Skip to content

Commit

Permalink
Prevent hidden documents from locking orientation (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Feb 15, 2023
1 parent 9dc8f9d commit 0ef45ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ <h2>
risk, return [=a promise rejected with=] a {{"SecurityError"}}
{{DOMException}} and abort these steps.
</li>
<li>If |document|'s [=Document/visibility state=] is "hidden", return
[=a promise rejected with=] an {{"SecurityError"}} {{DOMException}}
and abort these steps.
</li>
<li>If the [=user agent=] does not support locking the screen
orientation to |orientation|, return [=a promise rejected with=] a
{{"NotSupportedError"}} {{DOMException}} and xse steps.
Expand Down Expand Up @@ -506,6 +510,10 @@ <h2>
[=sandboxed orientation lock browsing context flag=] set, return
`undefined`.
</li>
<li>If |document|'s [=Document/visibility state=] is "hidden",
[=exception/throw=] a {{"SecurityError"}} {{DOMException}} and abort
these steps.
</li>
<li>If screen's [=Screen/active orientation lock=] is `null`, return
`undefined`.
</li>
Expand Down

0 comments on commit 0ef45ef

Please sign in to comment.