Skip to content

firefox-profile cannot delete profileDir #2231

Open

Description

@PatrykKuniczak

Describe the bug

[firefox-profile] cannot delete profileDir on exit ***\AppData\Local\Temp\firefox-profileln8DEw/ Error: EPERM, Permission denied: \\?\***\AppData\Local\Temp\firefox-profileln8DEw '\\?\***\AppData\Local\Temp\firefox-profileln8DEw'
at Object.rmSync (node:fs:1205:18)
at FirefoxProfile ._ cleanOnExit (***\wxt\node_modules\.pnpm\[email protected]\node_modules\firefox-profile\lib\firefox_profile. js:289:12)
at process. FirefoxProfile. onExit (***\wxt\node_modules\.pnpm\[email protected]\node_modules\firefox-profile\lib\firefox_profile. js:172:12)
at process.emit (node:events:520:22)
at process.emit (node: domain: 489:12)
at process.exit (node:internal/process/per_thread:236:15)
at process. FirefoxProfile. onSigInt (***\wxt\node_modules\.pnpm\[email protected]\node_modules\firefox-profile\lib\firefox_profile.js:177:13)
at process.emit (node: events: 508:20)
at process.emit (node: domain: 489:12)
at Signal. callbackTrampoline (node: internal/async_hooks:131:14) {
  errno: 1,
    code: 'EPERM'
  path: '\\\\?\C:\\Users\\***\\AppData\\Local\\Temp\\firefox-profileln8DEw',
    syscall: 'rm'

On *** - was a absolute path from my PC
It's happening on close wxt -b firefox

Reproduction

  1. Clone this repo
  2. Run wxt -b firefox on packages/wxt-demo

Steps to reproduce

No response

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor              
    Memory: 16.52 GB / 31.91 GB
  Binaries:
    Node: 25.6.1 - C:\Program Files\nodejs\node.EXE
    npm: 11.9.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.29.2 - C:\Users\***\AppData\Local\pnpm\pnpm.CMD
    bun: 1.3.3 - C:\Users\***\.bun\bin\bun.EXE
  Browsers:
    Chrome: 146.0.7680.178
    Edge: Chromium (140.0.3485.54)
    Firefox: 149.0 - C:\Program Files\Mozilla Firefox\firefox.exe
    Internet Explorer: 11.0.26100.7309
  npmPackages:
    wxt: workspace:* => 0.20.20

Used Package Manager

pnpm

Validations

Activity

  1. added
    pending-triage
    and removed
    pending-triage
    on Apr 4, 2026
  2. aklinker1 commented on Apr 12, 2026

    @aklinker1
    Member

    Probably already fixed in web-ext, is there a similar report there?

  3. PatrykKuniczak commented on Apr 12, 2026

    @PatrykKuniczak
    CollaboratorAuthor

    @aklinker1 I'll check it, if it happens on the latest web-ext

  4. PatrykKuniczak commented on Apr 13, 2026

    @PatrykKuniczak
    CollaboratorAuthor

    @aklinker1 It seems resolved on firefox:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1891521

    but not for web-ext:
    mozilla/web-ext#3134

    But it's probably fixed, and that one is duplicated or they forgot to close it, but anyway you don't update:
    https://github.com/wxt-dev/web-ext-run on last 7 months

    That's mean we have very old version of web-ext

  5. added
    upstream
    on Apr 13, 2026
  6. suveshmoza commented on Nov 29, 2026

    @suveshmoza
    Collaborator

    @PatrykKuniczak Is it still happening or should we close the issue?

  7. PatrykKuniczak commented on Nov 29, 2026

    @PatrykKuniczak
    CollaboratorAuthor

    @PatrykKuniczak Is it still happening or should we close the issue?

    That was on Windows(God please no 😆), i've been using MacOS right now for programming, but i still have PC with Win for testing purposes and i've been gaming there.

    I can't check it right now, let's see:

    image

    What's an OS ...

    I'll try to figure it out tomorrow.

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

    upstream

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions