-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make dapp detection accurate #6491
Comments
cc: @bbondy @tomlowenthal |
@tmcw I think this is no longer an issue, can you confirm? |
I can confirm that it is still an issue, still replicable with the one-line trigger. https://gainful-beechnut.glitch.me/ |
I would like to add that even for dapp, no popup should be triggered just by accessing window.ethereum. This is not user friendly Brave should follow https://eips.ethereum.org/EIPS/eip-1102 "window.ethereum existence" check is useful to check if a user browser can support dapp. |
We are going to be removing the dapp infobar for the time being, so closing this for now. ref: We are going to be removing the dapp infobar for the time being, so closing this for now, but in future iterations this will be top priority for the feature, thanks! ref: brave/brave-core#7321 |
Description
Detecting 'Installing a Crypto Wallet' by using a getter on window.web3 is inaccurate and misleading to users. For sites like ours, we want to keep track of globals, and something as simple as
Triggers this message, which recurs even if a user clicks 'Deny'. It's a product that has nothing to do with crypto and this message is incorrect at least and a problem for user trust.
You could:
Or something else. For now we'll have to hardcode a workaround into our app to make it avoid web3.
Steps to Reproduce
Object.getOwnPropertyNames(window).forEach(key => window[key])
Actual result:
A dapp is detected.
Expected result:
A dapp is not detected.
Reproduces how often:
Always
Brave version (brave://version info)
All
Other Additional Information:
Pulled from #718
The text was updated successfully, but these errors were encountered: