Skip to content

Sidepanel can't display with dev:firefox #1622

Closed as not planned
Closed as not planned

Description

@kuloud

Describe the bug

after run dev:firefox , the manifest as follow:

  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval' http://localhost:3000; object-src 'self';",
    "sandbox": "script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:3000; sandbox allow-scripts allow-forms allow-popups allow-modals; child-src 'self';"
  }

and it's warning like this:

Warning details

Reading manifest: Error processing content_security_policy.extension_pages: ‘script-src’ directive contains a forbidden http: protocol source
Warning details

Reading manifest: Warning processing content_security_policy.sandbox: An unexpected property was found in the WebExtension manifest.

popup and sidepanel not shown(it's ok for build:firefox)

Image

Reproduction

pnpm dev:firefox

Steps to reproduce

No response

System Info

System:
    OS: Linux 6.14 Ubuntu 25.04 25.04 (Plucky Puffin)
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1335U
    Memory: 4.83 GB / 14.74 GB
    Container: Yes
    Shell: 5.2.37 - /bin/bash
  Binaries:
    Node: 23.11.0 - /run/user/1000/fnm_multishells/22105_1745735970009/bin/node
    Yarn: 1.22.22 - /snap/bin/yarn
    npm: 10.9.2 - /run/user/1000/fnm_multishells/22105_1745735970009/bin/npm
    pnpm: 10.8.1 - /run/user/1000/fnm_multishells/22105_1745735970009/bin/pnpm
  npmPackages:
    vite: ^6.3.3 => 6.3.3
    wxt: ^0.20.5 => 0.20.5

Used Package Manager

pnpm

Validations

Activity

  1. added
    pending-triage
    on Apr 27, 2025
  2. added theissue type on Apr 27, 2025
  3. aklinker1 commented on Apr 28, 2025

    @aklinker1
    Member

    This is a known issue, I've had a bug reported to Mozilla for a while. It's an issue with Firefox, not WXT. Nothing I can do about it except track the issue: #1626

  4. kuloud commented on Apr 28, 2025

    @kuloud
    Author

    This is a known issue, I've had a bug reported to Mozilla for a while. It's an issue with Firefox, not WXT. Nothing I can do about it except track the issue: #1626

    Got it, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions