@@ -123,6 +123,8 @@ permission-related algorithms and types are defined as follows:
123
123
1. If |read state| is not {{PermissionState/"granted"}} , this descriptor's [=permission state=]
124
124
must be equal to |read state|.
125
125
126
+ Issue(whatwg/fs#101): Make these checks no longer associated with an entry.
127
+
126
128
: [=permission request algorithm=]
127
129
:: <div algorithm="permission request algorithm">
128
130
Given a {{FileSystemPermissionDescriptor}} |desc| and a {{PermissionStatus}} |status|,
@@ -592,15 +594,14 @@ run the following steps:
592
594
593
595
1. Let |origin| be |environment|'s [=environment settings object/origin=] .
594
596
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.
604
605
605
606
1. If |id| is non-empty:
606
607
1. If [=recently picked directory map=] [|origin|] [=map/exists=] :
0 commit comments