Skip to content

Commit f0fd3b3

Browse files
authored
Update a reference to FileSystemHandle/entry
See #408. This does not completely fix that issue, since there is still once more reference that will be fixed with whatwg/fs#101
2 parents b22b8fb + b34c5bf commit f0fd3b3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

index.bs

+10-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,14 @@ 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=], return the path of
602+
|entry|'s [=file system entry/parent=] in the local file system.
603+
1. If |entry| is a [=directory entry=], return
604+
|entry|'s path in the local file system.
604605

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

0 commit comments

Comments
 (0)