Skip to content

Commit

Permalink
Update spec.bs
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiv authored Mar 15, 2024
1 parent a5ca162 commit 70b7dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ When invoked on {{Document}} |doc|, the <dfn export method for=Document><code>ha
When invoked on {{Document}} |doc|, the <dfn export method for=Document><code>requestStorageAccess(types)</code></dfn> method must run these steps:

1. Let |p| be [=a new promise=].
1. If |types|'s member |all| is `false` and |types|'s member |cookies| is `false`, then [=/reject=] |p| with an "{{InvalidStateError}}" {{DOMException}} and return |p|.
1. Let |requestUnpartitionedCookieAccess| be `true` if |types|'s member |all| is `true` or |types|'s member |cookies| is `true`, and `false` otherwise.
1. If |types|.{{StorageAccessTypes/all}} is `false` and |types|.{{StorageAccessTypes/cookies}} is `false`, then [=/reject=] |p| with an "{{InvalidStateError}}" {{DOMException}} and return |p|.
1. Let |requestUnpartitionedCookieAccess| be `true` if |types|.{{StorageAccessTypes/all}} is `true` or |types|.{{StorageAccessTypes/cookies}} is `true`, and `false` otherwise.
1. [=React=] |p| to the invocation of {{Document/requestStorageAccess()}} given |requestUnpartitionedCookieAccess| and invoke the following steps if the promise is fulfilled (if the promise is rejected then apply that same rejection to |p|):
1. Let |handle| be a new object of type {{StorageAccessHandle}} with |types|.
1. [=/Resolve=] |p| with |handle|.
Expand Down

0 comments on commit 70b7dfc

Please sign in to comment.