-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement File System API support (#41827)
* feat: implement File System API support Co-authored-by: Shelley Vohr <[email protected]> * test: add a test for writable permission checking Co-authored-by: Shelley Vohr <[email protected]> * fix: gn check include issues Co-authored-by: Shelley Vohr <[email protected]> * chore: feedback from review Co-authored-by: Shelley Vohr <[email protected]> * chore: cleanup feedback from review Co-authored-by: Shelley Vohr <[email protected]> * refactor: namespace to electron Co-authored-by: Shelley Vohr <[email protected]> * fixup! chore: cleanup feedback from review Co-authored-by: Shelley Vohr <[email protected]> * chore: address more feedback from review Co-authored-by: Shelley Vohr <[email protected]> * 5301485: Add content analysis to File System Access Javascript API. https://chromium-review.googlesource.com/c/chromium/src/+/5301485 Co-authored-by: Shelley Vohr <[email protected]> * docs: improve typing of details object Co-authored-by: Shelley Vohr <[email protected]> * chore: address outstanding todo Co-authored-by: Shelley Vohr <[email protected]> * refactor: use Chrome's file system access blocklist Co-authored-by: Shelley Vohr <[email protected]> * lint Co-authored-by: Shelley Vohr <[email protected]> * fix: Windows build Co-authored-by: Shelley Vohr <[email protected]> * test: clarify test verbiage Co-authored-by: Shelley Vohr <[email protected]> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <[email protected]>
- Loading branch information
1 parent
20c6c37
commit cf1087b
Showing
23 changed files
with
1,562 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# FilesystemPermissionRequest Object extends `PermissionRequest` | ||
|
||
* `filePath` string (optional) - The path of the `fileSystem` request. | ||
* `isDirectory` boolean (optional) - Whether the `fileSystem` request is a directory. | ||
* `fileAccessType` string (optional) - The access type of the `fileSystem` request. Can be `writable` or `readable`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# MediaAccessPermissionRequest Object extends `PermissionRequest` | ||
|
||
* `securityOrigin` string (optional) - The security origin of the request. | ||
* `mediaTypes` string[] (optional) - The types of media access being requested - elements can be `video` | ||
or `audio`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# OpenExternalPermissionRequest Object extends `PermissionRequest` | ||
|
||
* `externalURL` string (optional) - The url of the `openExternal` request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# PermissionRequest Object | ||
|
||
* `requestingUrl` string - The last URL the requesting frame loaded. | ||
* `isMainFrame` boolean - Whether the frame making the request is the main frame. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.