-
Notifications
You must be signed in to change notification settings - Fork 863
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
Add dapp detection #2678
Add dapp detection #2678
Commits on Jul 17, 2019
-
contents script in brave extension detects whether window.web3 is accessed or not from current tab and sends a message to background script to notify to browser. When browser gets "braveShields.dappAvailable", it shows wallet extension install guide when dapp detection pref is enabled.
Configuration menu - View commit details
-
Copy full SHA for f052d0a - Browse repository at this point
Copy the full SHA f052d0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a535116 - Browse repository at this point
Copy the full SHA a535116View commit details -
Load brave://wallet to install extension from Dapp detection
Simply loading brave://wallet will install the extension if it's not already installed
Configuration menu - View commit details
-
Copy full SHA for d78054e - Browse repository at this point
Copy the full SHA d78054eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 114d103 - Browse repository at this point
Copy the full SHA 114d103View commit details -
Configuration menu - View commit details
-
Copy full SHA for 159a941 - Browse repository at this point
Copy the full SHA 159a941View commit details -
Configuration menu - View commit details
-
Copy full SHA for 829fbf1 - Browse repository at this point
Copy the full SHA 829fbf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for daa01c5 - Browse repository at this point
Copy the full SHA daa01c5View commit details -
Use sender.tab.id and no need for active check
Since the permission prompt is properly scoped within the tab, we don't need to check active. And we don't want to check it. The check for the frameId is just to future proof to make sure a DOS attack is not possible subframes
Configuration menu - View commit details
-
Copy full SHA for 7155744 - Browse repository at this point
Copy the full SHA 7155744View commit details -
Configuration menu - View commit details
-
Copy full SHA for 348bb5b - Browse repository at this point
Copy the full SHA 348bb5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1221260 - Browse repository at this point
Copy the full SHA 1221260View commit details -
Add pref to signal wallet loaded at least once
Thi is so that it can continue to be loaded in the future
Configuration menu - View commit details
-
Copy full SHA for 924d3e6 - Browse repository at this point
Copy the full SHA 924d3e6View commit details -
Change API dappAvailable -> promptToEnableWallet
It is more clear for what is being done
Configuration menu - View commit details
-
Copy full SHA for 2ac1bb4 - Browse repository at this point
Copy the full SHA 2ac1bb4View commit details -
Add API to see if braveWallet is enabled
This is different than chrome.braveWallet being available in the first place
Configuration menu - View commit details
-
Copy full SHA for a42d82b - Browse repository at this point
Copy the full SHA a42d82bView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb31680 - Browse repository at this point
Copy the full SHA eb31680View commit details -
Configuration menu - View commit details
-
Copy full SHA for a61bbbf - Browse repository at this point
Copy the full SHA a61bbbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e1fa33 - Browse repository at this point
Copy the full SHA 5e1fa33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8964078 - Browse repository at this point
Copy the full SHA 8964078View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e5c1e0 - Browse repository at this point
Copy the full SHA 4e5c1e0View commit details