WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Firefox unable to install extensions

Open alanlivio opened this issue 6 months ago • 10 comments

Windows Version

Microsoft Windows [Version 10.0.26100.4349]

WSL Version

2.5.9.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

6.6.87.2-microsoft-standard-WSL2

Distro Version

Ubuntu 24.04

Other Software

This is a follow up of #2353. See steps below

https://github.com/user-attachments/assets/13d7b7dc-78e1-41b2-aa8c-fd1131340e7b

Repro Steps

Open WSL -> Open Firefox -> Install one Extension -> Install does not happen. See steps below

https://github.com/user-attachments/assets/13d7b7dc-78e1-41b2-aa8c-fd1131340e7b

Expected Behavior

install extension

Actual Behavior

exntesion is not installed

Diagnostic Logs

WslLogs-2025-11-19_17-58-37.zip

alanlivio avatar Jun 23 '25 18:06 alanlivio

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar Jun 23 '25 18:06 github-actions[bot]

I just faced this problem today myself. I would also add that - for me - installing the addons/extensions is possible if I start Firefox as an administrator ("sudo firefox") from command line, that could give a hint to the underlying problem for the ones in the know.

UPDATE: I've found the workaround! As it's stuck when one tries to click on the "Add" button, using the "ALT+A" key combination instead allows the installation process to continue, and "voilà"!

BHH01 avatar Jun 24 '25 16:06 BHH01

Did you install Firefox via Snap or apt?

sirredbeard avatar Jun 30 '25 18:06 sirredbeard

hi @sirredbeard. I install by sudo apt install firefox. But seems that internally ubuntu call snap. See my apt list

$ apt list firefox
Listing... Done
firefox/noble,now 1:1snap1-0ubuntu5 amd64 [installed]

alanlivio avatar Jul 07 '25 18:07 alanlivio

I would be interested to see if you could reproduce it with the apt package directly from Mozilla. Here is an article on how to do so.

If it does not affect the apt package method, we can escalate to the snap team at Canonical.

sirredbeard avatar Jul 07 '25 19:07 sirredbeard

I encountered this on Ubuntu the same as the original poster. So I switched over to Debian and added Mozilla's package repository (per this guide) and installed firefox from there. Same behavior.

  • Launching firefox from its WSL app shortcut or from the WSL command line as regular user = can't add extensions. Specifically, clicking the Add button does nothing (as does Alt+A).
  • Clicking Cancel also does nothing. I have to close the tab to get rid of the install dialog.
  • sudo firefox installs extensions just fine.

benfishbus avatar Jul 25 '25 13:07 benfishbus

I found a strange workaround, which is to right-click inside the "allow in private windows" checkbox, choose "Select All" which then gives keyboard focus to the dialog, then tab focus to the "Add" button and press space.

Pressing Alt-A did not work for me.

Mooninaut avatar Oct 31 '25 13:10 Mooninaut

I resolved the issue with Firefox addons on Kali Linux using two distinct solutions:

Solution 1: Executing Firefox using the sudo command as @BHH01 said.

Solution 2: Utilizing the Win-Kex environment.

Both solutions worked for me individually.

cxsxrrrr avatar Nov 12 '25 00:11 cxsxrrrr

Diagnostic information
Issue was edited and new log file was found: https://github.com/user-attachments/files/23634660/WslLogs-2025-11-19_17-58-37.zip
Detected appx version: 2.5.9.0

github-actions[bot] avatar Nov 19 '25 18:11 github-actions[bot]

another workaround is to keep holding the ctrl key when clicking add extension button (before the popup shows until the add key is clicked)

samymohammed avatar Nov 30 '25 08:11 samymohammed