Closed cairoeth closed 1 year ago
worth noting this works flawlessly with rainbowkit out of the box so not clear why such a convoluted soution is needed in #501 for this app
worth noting this works flawlessly with rainbowkit out of the box so not clear why such a convoluted soution is needed in #501 for this app
we have CSP headers enabled on the app site, which breaks the injection mechanism used by metamask (and other wallets) in firefox/ios
how could you make the new version the default without first testing it on major browsers? you should at least redirect Firefox users to v2...
You should ask firefox why they haven't fixed a years old security issue
@LeonmanRolls so now it's the user's job to resolve a contentious Firefox bug because you didn't perform basic testing and/or aren't willing to implement a sensible UX flow.
for now, all you have to do is redirect users of Firefox and its derivatives who click on Metamask to the previous version. you can change that when you found a workaround. that CSP bug won't be fixed anytime soon.
your next best option is to leave every user of Firefox and Tor Browser user clueless as to why they can't access ENS.
It's not that we didn't perform testing, it's more a question of wanting to protect users.
So the decision was to taken to not allow firefox/metamask use on the app as it is less secure only while we look for a workaround, point taken we could have done something in the UI about that in the meantime. As you can imagine implementing things in the UI for specific wallet/browser combos is a bit of a rabbit hole.
fix is now merged and in place
@TateB nice, thank you!
@TateB or @LeonmanRolls - Is this CSP implementation what's preventing the injected provider option ("Browser Wallet") from showing in the Rainbowkit Modal when using Firefox?
iirc "Browser Wallet" isn't an option on the rainbowkit version the main build is on, unrelated to CSP.
The current site seems to disagree. Screen shot from now.
I see you're calling the Injected Wallet option in the config of the current build, perhaps that's where this is coming from?
just to clarify, what wallet are you trying to use with firefox?
Frame.sh, and it's their companion browser extension that's being picked up in that screen shot above using Brave.
@TateB - any thoughts? Are we back to first question of “is it our CSP implementation that’s preventing the “Browser Wallet” option from showing in Firefox while in Brave it does?
sorry, yep this would be the CSP on the site. we need to manually inject a metamask provider loader for firefox user agents. we need to specify and add every injected provider that we want to load in firefox unfortunately.
afaik there's no good solution for this issue (other than firefox fixing it), but i'm open to ideas.
When trying to connect a wallet with Firefox, the app doesn't detect the Metamask extension installed in the browser. Therefore, it redirects the user to scan the QR code. Works as expected with Chrome.
On a similar note, the button to "Add to Firefox" in the Get Metamask modal redirects the user to the Chrome store instead of the Firefox addons page.