Skip to content

Commit

Permalink
Update a reference to FileSystemHandle/entry
Browse files Browse the repository at this point in the history
See WICG#408. This does not completely fix that issue, since there
is still once more reference that will be fixed with
whatwg/fs#101
  • Loading branch information
a-sully authored and alex292 committed Apr 25, 2023
1 parent 51cdcd9 commit 72d2463
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ permission-related algorithms and types are defined as follows:
1. If |read state| is not {{PermissionState/"granted"}}, this descriptor's [=permission state=]
must be equal to |read state|.

Issue(whatwg/fs#101): Make these checks no longer associated with an entry.

: [=permission request algorithm=]
:: <div algorithm="permission request algorithm">
Given a {{FileSystemPermissionDescriptor}} |desc| and a {{PermissionStatus}} |status|,
Expand Down Expand Up @@ -592,15 +594,16 @@ run the following steps:

1. Let |origin| be |environment|'s [=environment settings object/origin=].

1. If |startIn| is a {{FileSystemHandle}}:
1. Let |entry| be |startIn|'s [=FileSystemHandle/entry=].
1. If |entry| does not represent a [=/file system entry=] in an [=origin private file system=]:
1. If |entry| is a [=file entry=], and a path on the local file system
corresponding to the parent directory of |entry| can be determined,
then return that path.
1. If |entry| is a [=directory entry=], and a path on the local file system
corresponding to |entry| can be determined,
then return that path.
1. If |startIn| is a {{FileSystemHandle}} and is not
[=FileSystemHandle/in the origin private file system=]:
1. Let |entry| be the result of [=locating an entry=] given
|startIn|'s [=FileSystemHandle/locator=].
1. If |entry| is a [=file entry=], and a path on the local file system
corresponding to the parent directory of |entry| can be determined,
then return that path.
1. If |entry| is a [=directory entry=], and a path on the local file system
corresponding to |entry| can be determined,
then return that path.

1. If |id| is non-empty:
1. If [=recently picked directory map=][|origin|] [=map/exists=]:
Expand Down

0 comments on commit 72d2463

Please sign in to comment.