Skip to content

Commit

Permalink
update permission request language
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sully committed Nov 2, 2022
1 parent 861eee1 commit 22226d4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,17 @@ method steps are:
1. If |destination_entry| exists in the underlying file system:
1. [=/Reject=] |result| with an "{{InvalidModificationError}}" {{DOMException}}
and abort.
1. Let |permissionStatusSource| be the result of [=requesting access=]
given <b>[=this=]</b> and {{"readwrite"}}.
If that throws an exception, [=reject=] |result| with that exception and abort.
1. If |permissionStatusSource| is not {{PermissionState/"granted"}},
[=/reject=] |result| with a "{{NotAllowedError}}" {{DOMException}} and abort.

1. Let |accessSource| be the result of running |entry|'s
[=entry/request access=] given "`readwrite`".
1. If |accessSource| is not "{{PermissionState/granted}}", reject |result| with a
"{{NotAllowedError}}" {{DOMException}} and abort.
1. If |new_directory| is not [=entry/parent=]:
1. Let |permissionStatusDest| be the result of [=requesting access=]
given |new_directory| and {{"readwrite"}}.
If that throws an exception, [=reject=] |result| with that exception and abort.
1. If |permissionStatusDest| is not {{PermissionState/"granted"}},
[=/reject=] |result| with a "{{NotAllowedError}}" {{DOMException}} and abort.
1. Let |accessDest| be the result of running |new_directory|'s
[=entry/request access=] given "`readwrite`".
1. If |accessDest| is not "{{PermissionState/granted}}", reject |result| with a
"{{NotAllowedError}}" {{DOMException}} and abort.

1. Let |lockResultSource| be the result of [=file entry/lock/take|taking a lock=]
with "`exclusive`" on |entry|.
1. If |lockResultSource| is false, [=reject=] |result| with a
Expand Down

0 comments on commit 22226d4

Please sign in to comment.