[Bug]: Unable to unlock wallet on Firefox
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
- Click the extension button
- Enter password
- 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
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
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
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?
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)
Any new user encountering an issue like this will immediately abandon this product.
If anyone comes across this issue can you share the background logs from the extension?
@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
Just caught the issue, disable/enable extention helped
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 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.
@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.
I don't think the root problem is fixed yet... That's just a workaround to export your data.
@dataviruset are you still seeing it on the MetaMask extension v12.17.3?
@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.
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 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.
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