-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow folks to enable File System API with a Flag #18979
Comments
Yeah or even as a site config feature |
Test plan:
Expected result:
Expected result:
Expected result: |
Note: Removed |
Verified
|
Brave | 1.33.51 Chromium: 95.0.4638.69 (Official Build) nightly (x86_64) |
---|---|
Revision | 6a1600ed572fedecd573b6c2b90a22fe6392a410-refs/branch-heads/4638@{#984} |
OS | macOS Version 11.6.1 (Build 20G224) |
Steps:
- Start Brave
- Navigate to https://brave.com
- Right-click and select Inspect to open DevTools
- In the DevTools, select Console tab
- Paste the following code in the Console window:
self.showOpenFilePicker()
Expected result:
Uncaught TypeError: self.showOpenFilePicker is not a function
- Navigate to brave://flags
- In the search box type
file-system-access-api
Expected result:
File System Access API
item is shown
example | example |
---|---|
- Change the File System API item's status to
Enabled
- Click on the
Relaunch
button - Once the browser restarts, repeat steps 2 - 5
Expected result:
Open
file picker dialog is shown
Borrowing this thread a bit. but may i ask what the reasoning behind having it disabled by default? |
bc users giving websites direct access to their local disk (even behind a permission) is a huge footgun that is very likely to be abused and harm some users. We're interested (resources permitting) on supporting the origin filesystem (file system like API but not tied to the actual file system), but do not plan to enable the over all File System API |
Websites can still obtain access to user-selected folders or files through actions such as dragging and dropping items. Although write access may not be granted, it is still possible for websites to retrieve files and folders using the slightly worse option: Considering that file input and drag and drop already allow for this functionality, I fail to see why So I fail to see a compelling reason for why the For example, if a folder is dragged and dropped, and a file system handle is obtained using |
When users write to What about cookies? I don't get the top-down, hierarchical organizational idea that users are not capable of making their own decisions on their own machines about what they enable or disable. If you don't want to write files to the local filesystem don't do so on your own machine. What you decide to do on your own machine does not translate to all users in the known universe must do as you say and do on their own machines. |
|
could i bug you to change the Native File System API feature from “off with no way to enable” (what it is currently) to “disabled by default but enable-able with a flag”?
The text was updated successfully, but these errors were encountered: