I'm developing extensions (Windows, Chrome 134, unpacked extension at the moment) and have a couple of questions about persistent permissions (PP) to File System Access (via, e.g. window.showDirectoryPicker()
, dirHandle.queryPermission()
, etc).
To clarify my language later, I'll call "Step 1" the first time the user grants access to a directory (Chrome's prompt is "Let site edit files"). And "Step 2" is the second time the user does this (Chrome gives the PP 3-option prompt that includes "Allow on every visit").
My questions:
Main question: How does a user remove PP once granted in an extension?
Bonus question: Is it expected behavior with PP to only have to grant PP permission once, even if the user changes the specific directory later? (e.g. user grants PP via both 'Step 1' and 'Step 2' for directory Foo/; later the user grants permission to directory Bar/ and is only prompted for 'Step 1', but the extension still seems to have granted PP to Bar/)
More on question 1 (where I have looked/what I have tried):
- On normal web pages (non-extension), the user can manage PP they have granted by viewing 'site information' at left side of address bar. But my extension uses the side panel and there is no such 'site information' there:
- My extension also opens a tab to allow users to select a directory for PP. But on that extension page there is no clickable info in 'site information' (edit: I feel this might not have been the case on an earlier version of Chrome maybe a year ago?):
I have uninstalled and reinstalled the extension, and this forces the user to repeat 'Step 1', but that alone gives PP.
I have looked through "extension details" page but nothing I've tested there has revoked PP. There is a link to "Site Settings", and I have clicked "Reset Permissions" and also looked through all settings but see nothing related to PP.
I have also looked through "Chrome Settings" > "Privacy and Security" and see nothing there.
Thanks for any suggestions. I could probably post some minimal code (that wouldn't be very minimal), but hoping first that someone just knows the answer.