microsoft / microsoft/playwright

[Feature] Support permissions for chromium File System Access API

Open
#18,267 20 comments 57 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P3-collecting-feedback
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);
```

![image](https://user-images.githubusercontent.com/6966254/197353363-8810d2cc-4fa8-472e-89eb-4d008488f6ca.png)

Do you think others might benefit from this as well?

This will benefit folks writing robust apps which provide local first support.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.