wxt-dev / wxt-dev/wxt

matchAboutBlank doesn't work in dev mode

Open
#1,928 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

setup a content script with

	matches: ["<all_urls>"],
	allFrames: true,
	matchAboutBlank: true,

build using wxt (aka npm run dev)

Go to a page with an iframe like https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe

Use DevTools and notice no content script is injected in the iframe

Reproduction

follow the steps above

Steps to reproduce

No response

System Info
System:
    OS: macOS 15.6.1
    CPU: (16) arm64 Apple M4 Max
    Memory: 21.73 GB / 128.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.5.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 11.6.1 - /opt/homebrew/bin/npm
    pnpm: 10.18.0 - /opt/homebrew/bin/pnpm
    Deno: 2.5.2 - /opt/homebrew/bin/deno
  Browsers:
    Chrome: 140.0.7339.214
    Firefox: 143.0.4
    Safari: 18.6
  npmPackages:
    wxt: 0.20.11 => 0.20.11
Used Package Manager

pnpm

Validations

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 issue with npm run dev using the shown content-script settings and the linked iframe page. Trace WXT's dev-mode content-script generation and injection path, then verify that matchAboutBlank injects the script into the iframe while preserving the existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.