-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Remove permission prompts when using Chrome Native File System API #7351
Comments
Any chance this could be looked at? It's blocking us switching over our file system implementation. Thanks. |
This is fixed in git and will be available in the next nightly build. |
Great, thank you! |
I'm afraid the issue is actually only partially fixed. I tested with 0.44.6 which says it includes the change. The prompt at step 2 is gone, but there is still a prompt at step 4. Looking at the change here: nwjs/chromium.src@857688b In chrome_native_file_system_permission_context.cc, there was a change to auto-grant permission in Another smaller issue is if you pick a special folder like "Documents" that is blocked for security reasons, it shows a message that includes the chrome extension name, which isn't very user friendly: |
This is fixed in git and will be available in the next nightly build. |
Thanks, will check this out soon. |
I can confirm everything appears to be working OK in the latest nightly. Thank you very much! |
NWJS Version : 0.44 (beta)
Operating System : Windows 10 64-bit
Expected behavior
When using Chrome's Native File System API (instead of the node fs API), permission prompts should be automatically approved.
Actual behavior
Permission prompts still appear, as they do in the Chrome browser. However these are redundant as in NW.js, the app has permission to access files already.
How to reproduce
Minimal repro:
https://www.dropbox.com/s/70n9ahropz8olxi/nwjs-native-filesystem-api.zip?dl=0
Try the following steps:
Note: this currently requires
"chromium-args": "--enable-features=NativeFileSystemAPI"
in package.json since the Native File System API is currently in origin trial, but is scheduled to be enabled by default later this year.The text was updated successfully, but these errors were encountered: