diff --git a/index.html b/index.html index 2e10fee..8238f59 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,9 @@
Let entry be desc["handle
"]'s entry.
If entry represents a file system entry in a bucket file system, this descriptor’s permission state must always be @@ -1072,7 +1072,7 @@
mode
,
and a handle
representing entry’s parent.
Otherwise, if desc.mode
is
+
Otherwise, if desc["mode
"] is
"readwrite
":
If status.state
is not "prompt
",
- then abort these steps.
If status’s state
is not
+ "prompt
", then abort these steps.
Let settings be desc.handle
's relevant settings object.
Let settings be desc["handle
"]'s relevant settings object.
Let global be settings’s global object.
Set desc.name
to "file-system
".
Set desc["name
"] to
+ "file-system
".
Set desc.handle
to handle.
Set desc["handle
"] to handle.
Set desc.mode
to mode.
Set desc["mode
"] to mode.
Return desc’s permission state.
Set desc.name
to "file-system
".
Set desc["name
"] to
+ "file-system
".
Set desc.handle
to handle.
Set desc["handle
"] to handle.
Set desc.mode
to mode.
Set desc["mode
"] to mode.
Let status be the result of running create a PermissionStatus for desc.
Let state be the result of querying file system permission given this and descriptor.mode
.
Let state be the result of querying file system permission given this and descriptor["mode
"].
Resolve result with state.
Let state be the result of requesting file system permission given this and descriptor.mode
.
+
Let state be the result of requesting file system permission given this and descriptor["mode
"].
If that throws an exception, reject result with that exception and abort.
Resolve result with state.
@@ -1394,12 +1396,13 @@Let accepts options be a empty list of tuples consisting of a description and a filter.
For each type of options.types
:
For each type of options["types
"]:
Let description be type.description
.
Let description be type["description
"] if type["description
"] exists;
+ otherwise the empty string.
For each typeString → suffixes of type.accept
:
For each typeString → suffixes of type["accept
"]:
Let parsedType be the result of parse a MIME type with typeString.
@@ -1421,10 +1424,10 @@Let filter be the following steps, given a filename (a string), and a type (a MIME type):
+Let filter be these steps, given a filename (a string) and a type (a MIME type):
Let parsedType be the result of parse a MIME type with typeString.
If either accepts options is empty,
-or options.excludeAcceptAllOption
is false
:
excludeAcceptAllOption
"] is false
:
Let description be a user understandable string describing "all files".
@@ -1601,12 +1604,12 @@If recently picked directory map[origin] exists:
Let path map be recently picked directory map[origin].
If path map[id] exists, then return path map[id].
+If path map[id] exists, then return path map[id].
If recently picked directory map[origin] exists:
Let path map be recently picked directory map[origin].
If path map[""] exists, then return path map[""].
+If path map[""] exists, then return path map[""].
If recently picked directory map[origin] does not exist, +
If recently picked directory map[origin] does not exist, then set recently picked directory map[origin] to an empty path id map.
If id is not specified, let id be an empty string.
@@ -1672,7 +1675,7 @@Let accepts options be the result of processing accept types given options.
Let starting directory be the result of determining the directory the picker will start in given options.id
, options.startIn
and environment.
Let starting directory be the result of determining the directory the picker will start in given options["id
"], options["startIn
"], and environment.
Let global be environment’s global object.
Display a prompt to the user requesting that the user pick some files.
- If options.multiple
is false, there must be no more than one file selected;
+ If options["multiple
"] is false,
+ there must be no more than one file selected;
otherwise any number may be selected.
The displayed prompt should let the user pick one of the accepts options to filter the list of displayed files. Exactly how this is implemented, and what this prompt looks like is implementation-defined.
@@ -1716,7 +1720,7 @@FileSystemFileHandle
associated with entry to result.
Remember a picked directory given options.id
, entries[0] and environment.
Remember a picked directory given options["id
"], entries[0] and environment.
Perform the activation notification steps in global’s browsing context.
Note: This lets a website immediately perform operations on the returned handles that @@ -1753,7 +1757,7 @@
Let accepts options be the result of processing accept types given options.
Let starting directory be the result of determining the directory the picker will start in given options.id
, options.startIn
and environment.
Let starting directory be the result of determining the directory the picker will start in given options["id
"], options["startIn
"] and environment.
Let global be environment’s global object.
".local"
.
When possible, this prompt should start out showing starting directory.
-If options.suggestedName
is specified and not null,
- the file picker prompt will be pre-filled with the options.suggestedName
as the default name to save as. The interaction between the suggestedName
and accepts options is implementation-defined.
+
If options["suggestedName
"] exists and
+ is not null, the file picker prompt will be pre-filled with the options["suggestedName
"] as the default name
+ to save as. The interaction between the suggestedName
and accepts options is implementation-defined.
If the suggestedName
is deemed too dangerous, user agents should ignore or sanitize the
suggested file name, similar to the sanitization done when fetching something as a download.
Note: A user agent could for example pick whichever option in accepts options that matches suggestedName
as the default filter.
Set result to a new FileSystemFileHandle
associated with entry.
Remember a picked directory given options.id
, entry and environment.
Remember a picked directory given options["id
"], entry and environment.
Perform the activation notification steps in global’s browsing context.
Note: This lets a website immediately perform operations on the returned handles that @@ -1835,7 +1840,7 @@
Let environment be this’s relevant settings object.
Let starting directory be the result of determining the directory the picker will start in given options.id
, options.startIn
and environment.
Let starting directory be the result of determining the directory the picker will start in given options["id
"], options["startIn
"] and environment.
Let global be environment’s global object.
Set result to a new FileSystemDirectoryHandle
associated with entry.
Remember a picked directory given options.id
, entry and environment.
Remember a picked directory given options["id
"], entry and environment.
Let desc be a FileSystemPermissionDescriptor
.
Set desc["name
"] to
+ "file-system
".
Set desc["handle
"] to result.
Let desc be a FileSystemPermissionDescriptor
with entry as handle
and options.mode
as mode
.
Let status be the result of running create a PermissionStatus for desc.