metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: Unable to unlock wallet on Firefox

Open ScreamingHawk opened this issue 1 year ago • 17 comments

Describe the bug

I am unable to unlock my Metamask wallet (browser extension) on Firefox. I have a Windows machine and an Ubuntu machine. Both are having the same issue. Works fine on Chrome

Expected behavior

No response

Screenshots/Recordings

No response

Steps to reproduce

  1. Click the extension button
  2. Enter password
  3. Spinner spins forever

Error messages or log output


Detection stage

In production (default)

Version

12.6.2

Build type

None

Browser

Firefox

Operating system

Windows, Linux

Hardware wallet

No response

Additional context

Version 12.6.2 Last Updated 17 December 2024

Severity

No response

ScreamingHawk avatar Dec 17 '24 21:12 ScreamingHawk

We have found that users hitting this should be able to unlock after either fully closing all firefox browser windows and then re-opening, or going to about:addons and toggling MetaMask on and off. Let us know if that does not work in your case

danjm avatar Dec 19 '24 21:12 danjm

I resolve this problem by update to the lastest verison(12.9.3)

I install this version by download zip from github release. PLS update the firefox addons store!!! @MetaMask @danfinlay

tyxlb avatar Dec 30 '24 02:12 tyxlb

I am also having this exact issue on OS X. I see the same CORS warnings in the extension's console.

  • Closing all windows and quitting Firefox doesn't help. I confirmed with Activity Monitor that there are no remaining Firefox processes running(though maybe there are some, I don't know everything to look for).
  • Toggling on and off the extension also does not seem to help either.

The Firefox Addons store only has Metamask 12.6.2 available(though it says it was updated 1 month ago).

If I manually install a newer version(as @tyxlb suggested) would I need to reimport keys etc? Or would it essentially update the older version I have installed?

knowaveragejoe avatar Jan 03 '25 06:01 knowaveragejoe

Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'wasm-unsafe-eval'” (Missing 'unsafe-eval') [runtime-lavamoat.js:10422:15](moz-extension://d5128610-bdb2-44d7-8cd6-redacted/scripts/runtime-lavamoat.js)
Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'wasm-unsafe-eval'” (Missing 'unsafe-eval') [runtime-lavamoat.js:4525:30](moz-extension://d5128610-bdb2-44d7-8cd6-redacted/scripts/runtime-lavamoat.js)

dataviruset avatar Feb 28 '25 06:02 dataviruset

Any new user encountering an issue like this will immediately abandon this product.

adraffy avatar Mar 02 '25 20:03 adraffy

If anyone comes across this issue can you share the background logs from the extension?

davidmurdoch avatar Mar 25 '25 17:03 davidmurdoch

@danjm unfortunately doesn't seem to work anymore. like others have said, it's a coin toss as to whether this procedure works or not.

i'm using current latest of both extension and firefox. funny thing though is that everything seems to work just fine on FF forks such as libre etc

cryptolit0 avatar Mar 30 '25 18:03 cryptolit0

Just caught the issue, disable/enable extention helped

yakimant avatar Apr 16 '25 16:04 yakimant

This just happened to me today. Background logs:

> Property eval will not be hardened because it is scuttled by LavaMoat protection. Visit https://github.com/LavaMoat/LavaMoat/pull/360 to learn more. [sentry-install.js:1:750](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/scripts/sentry-install.js)
> unreachable code after return statement
> [ui-0.js:26:76329](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/ui-0.js)
> unreachable code after return statement
> [ui-0.js:26:81291](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/ui-0.js)
> unreachable code after return statement
> [ui-0.js:26:83614](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/ui-0.js)
> unreachable code after return statement
> [ui-0.js:26:145994](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/ui-0.js)
> unreachable code after return statement
> [ui-0.js:26:146502](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/ui-0.js)
> unreachable code after return statement
> [ui-0.js:26:150217](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/ui-0.js)
> WARNING: Missing strong random number source [sentry-install.js:1:750](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/scripts/sentry-install.js)
> The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice [sentry-install.js:1:750](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/scripts/sentry-install.js)
> Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'wasm-unsafe-eval'” (Missing 'unsafe-eval') [runtime-lavamoat.js:12237:15](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/scripts/runtime-lavamoat.js)
> Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'wasm-unsafe-eval'” (Missing 'unsafe-eval') [runtime-lavamoat.js:5802:30](moz-extension://3fe9f487-f60c-4eba-8ef0-72fbf6f826a4/scripts/runtime-lavamoat.js)

Browser (firefox) restart, add-on disable/enable, and computer restart/on-off, nothing works.

majidfer avatar May 25 '25 07:05 majidfer

@majidfer can you open the Developer Tools background like you did to get these background logs and while it is open turn the extension on and back off? And then try to open MetaMask one more time. It looks like it is missing a few lines.

davidmurdoch avatar May 27 '25 16:05 davidmurdoch

@majidfer can you open the Developer Tools background like you did to get these background logs and while it is open turn the extension on and back off? And then try to open MetaMask one more time. It looks like it is missing a few lines.

Hi there @davidmurdoch . Thank you for your response. I've managed to solve the issue by following @0xLuigi's guide here https://github.com/MetaMask/metamask-extension/issues/22355#issuecomment-2824033656.

majidfer avatar May 28 '25 16:05 majidfer

I don't think the root problem is fixed yet... That's just a workaround to export your data.

dataviruset avatar Jun 02 '25 15:06 dataviruset

@dataviruset are you still seeing it on the MetaMask extension v12.17.3?

DanielTech21 avatar Jun 02 '25 17:06 DanielTech21

@dataviruset are you still seeing it on the MetaMask extension v12.17.3?

I just tested and I was able to reproduce the issue. I'm using 12.17.3. After restarting the browser, it started working again.

dataviruset avatar Jun 02 '25 19:06 dataviruset

I just tested and I was able to reproduce the issue. I'm using 12.17.3. After restarting the browser, it started working again.

Do you mean the issue is not present once you restarted the browser? Was it fixed by it, or did the issue reappear after some time again?

DanielTech21 avatar Jun 04 '25 09:06 DanielTech21

I just tested and I was able to reproduce the issue. I'm using 12.17.3. After restarting the browser, it started working again.

Do you mean the issue is not present once you restarted the browser? Was it fixed by it, or did the issue reappear after some time again?

I was able to reproduce the issue again today. I opened a website that popped up Metamask, I put in my password, then it just kept spinning. After refreshing the website, I checked the developer console, it said it had already requested accounts from the Metamask extension and was waiting, I can't remember the exact error message, I will share it if I see it again. Then I disabled the Metamask extension, refreshed the page, enabled the Metamas extension again, refreshed the page, put in the password in Metamask again and this time it worked to log in.

dataviruset avatar Jun 06 '25 06:06 dataviruset

Here's a video of the issue when I was able to reproduce it today. It was spinning, and just like last time, I disabled the extension and enabled it again, then it started working. (I loaded successfully after I stopped the video recording, but I didn't wanna show my wallet addresses so I stopped it there.)

https://github.com/user-attachments/assets/4f5bae6e-a14d-4744-ac45-0d764c63abbd

dataviruset avatar Jun 10 '25 12:06 dataviruset