Skip to content

Commit 72d2463

Browse files
a-sullyalex292
authored andcommitted
Update a reference to FileSystemHandle/entry
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
1 parent 51cdcd9 commit 72d2463

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

index.bs

+12-9
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ permission-related algorithms and types are defined as follows:
123123
1. If |read state| is not {{PermissionState/"granted"}}, this descriptor's [=permission state=]
124124
must be equal to |read state|.
125125

126+
Issue(whatwg/fs#101): Make these checks no longer associated with an entry.
127+
126128
: [=permission request algorithm=]
127129
:: <div algorithm="permission request algorithm">
128130
Given a {{FileSystemPermissionDescriptor}} |desc| and a {{PermissionStatus}} |status|,
@@ -592,15 +594,16 @@ run the following steps:
592594

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

595-
1. If |startIn| is a {{FileSystemHandle}}:
596-
1. Let |entry| be |startIn|'s [=FileSystemHandle/entry=].
597-
1. If |entry| does not represent a [=/file system entry=] in an [=origin private file system=]:
598-
1. If |entry| is a [=file entry=], and a path on the local file system
599-
corresponding to the parent directory of |entry| can be determined,
600-
then return that path.
601-
1. If |entry| is a [=directory entry=], and a path on the local file system
602-
corresponding to |entry| can be determined,
603-
then return that path.
597+
1. If |startIn| is a {{FileSystemHandle}} and is not
598+
[=FileSystemHandle/in the origin private file system=]:
599+
1. Let |entry| be the result of [=locating an entry=] given
600+
|startIn|'s [=FileSystemHandle/locator=].
601+
1. If |entry| is a [=file entry=], and a path on the local file system
602+
corresponding to the parent directory of |entry| can be determined,
603+
then return that path.
604+
1. If |entry| is a [=directory entry=], and a path on the local file system
605+
corresponding to |entry| can be determined,
606+
then return that path.
604607

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

0 commit comments

Comments
 (0)