wxt-dev / wxt-dev/wxt

file:/// pattern not supported in content_script[matches]

Open
#2,292 8 comments 0 reactions 1 assignee View on GitHub

@nishu-murmu is already working on this.

Since Jul 4, 2026.

Dominant language
TypeScript
Stars
10.5k
Forks
564
PR merge metrics
No merged PRs in 30d

Description

Feature Request

The url pattern file:/// isn't supported by wxt and gives a suggestion to open a PR. However this pattern is widely used across browsers including chrome and firefox. Many developers such as myself have to use the file:/// pattern for various reason and this is now seriously becoming a hurdle in one of my bigger projects. If possible can I open a PR for this issue/bug.

Is your feature request related to a bug?

N/A

What are the alternatives?

I don't there's an alternative. We can still use <all_urls> but that is just another burden in dev environment.

Additional context

I have attached a screenshot of the error just for reference.

Image

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.