microsoft / microsoft/playwright
[Feature] Support permissions for chromium File System Access API
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 96.3k
- Forks
- 6.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 180
Description
I am the author of [bangle-io](https://github.com/bangle-io/bangle-io) - a library which allows taking note locally thanks to the [File System Access API](https://web.dev/file-system-access/).
Currently Playwright **doesn't support accepting permissions** (see the screenshot) to view/edit a local file using the following api.
```ts
let dirHandle = await window.showDirectoryPicker();
const perms = await dirHandle.requestPermission(opts);
```

Do you think others might benefit from this as well?
This will benefit folks writing robust apps which provide local first support.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the showDirectoryPicker/requestPermission flow described in the issue under Chromium and compare it with Playwright's existing permission behavior. Completion means Playwright can accept the requested File System Access permissions for the demonstrated flow, with coverage confirming the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, typescript
- Domain
- authorization, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100