Skip to content

Commit

Permalink
Use SecurityError instead
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Feb 15, 2023
1 parent 325e4e5 commit 86b8dc5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,14 @@ <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 abort these steps.
</li>
<li>If |document|'s [=Document/visibility state=] is "hidden", return
[=a promise rejected with=] an {{"NotAllowedError"}} {{DOMException}}
and abort these steps.
</li>
<li data-tests="lock-basic.html">If |document|'s
{{Document/[[orientationPendingPromise]]}} is not `null`, [=reject
and nullify the current lock promise=] of |document| with an
Expand Down Expand Up @@ -511,17 +511,17 @@ <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>
<li>If |document|'s {{Document/[[orientationPendingPromise]]}} is not
`null`, [=reject and nullify the current lock promise=] of |document|
with an {{"AbortError"}}.
</li>
<li>If |document|'s [=Document/visibility state=] is "hidden",
[=exception/throw=] a {{"NotAllowedError"}} {{DOMException}} and
abort these steps.
</li>
<li>[=Apply orientation lock=] `null` to |document|.
</li>
</ol>
Expand Down

0 comments on commit 86b8dc5

Please sign in to comment.