Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add warning about reload on network change | Mark Stacey | 2019-08-22 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | We are soon removing the automatic refresh on network change behavior. A warning has been added to ensure sites know about this upcoming change. Any site that calls `.enable` is advised to use a `networkChanged` event handler to reload manually if they rely upon that behavior. They are also advised to set the flag `autoRefreshOnNetworkChange` to `false` to opt-out of the reload behavior early. This warning might be irritating for certain sites, as they might be indifferent to whether or not the site reloads, and not eager to set a flag to opt-in early just to silence the warning. However there was no other obvious way to warning the right people about this change, as any warning prior to an actual reload would only be seen by the few people that set their browser console to preserve logs. Relates to #3599 | ||||
* | Remove Drizzle tests (#6855) | Mark Stacey | 2019-07-16 | 1 | -1/+1 |
| | | | | | | | The Drizzle tests have not been used for some time. They were used to ensure compatibility with newer versions of `web3` v1. If we want to re-add tests to ensure compatibility with newer `web3` versions, we should find some way of doing that more reliably than was done here - these tests were somewhat flaky and unreliable. | ||||
* | Declare variables before use (#6806) | Mark Stacey | 2019-07-06 | 1 | -43/+46 |
| | | | | | | | | | | | | | | | | While working on #6805, I noticed that many variables were being used before they were declared. Technically this worked fine in practice because we were using the `transform-es2015-block-scoping` Babel plugin, which transforms `let` and `const` to `var`, which is hoisted. However, after removing that Babel transformation, many things broke. All instances of variables or classes being used before declared have been fixed. The `no-use-before-define` eslint rule has been added to catch these cases going forward. The rule is disabled for function declarations for the moment, because those are always hoisted. We could disable that too if we want to, but it's purely stylistic and would require a lot more changes. | ||||
* | bugfix: reject enable promise on user rejection | bitpshr | 2019-06-01 | 1 | -2/+2 |
| | |||||
* | Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410) | kumavis | 2019-05-04 | 1 | -92/+30 |
| | | | | | | | | | | * Ensure home screen does not render if there are unapproved txs (#6501) * Ensure that the confirm screen renders before the home screen if there are unapproved txs. * Only render confirm screen before home screen on mount. * inpage - revert _metamask api to isEnabled isApproved isUnlocked | ||||
* | Opens the original webpage from where installation of MetaMask was re… (#6272) | Sneh Koul | 2019-04-25 | 1 | -0/+6 |
| | | | | | | | | | | * Opens the original webpage from where installation of MetaMask was requested * Asking for dynamic permissions * code for forwarder/without extra permissions * Lint fix for onboardingComplete message sending code. | ||||
* | Stop reloading dapps on network change allowing dapps to decide if it should ↵ | Josh Stevens | 2019-03-22 | 1 | -0/+4 |
| | | | | | | | | | | | | refresh or not (#6330) * feat: `inpageProvider.autoRefreshOnNetworkChange` to allow dapps to control if it refreshes or not * feat: check the `autoRefreshOnNetworkChange` before a refresh * fix linting error * fix: use `window.ethereum` now `web3.ethereum` | ||||
* | EIP-1193: standard provider API (#6170) | Paul Bouchon | 2019-02-20 | 1 | -8/+6 |
| | | | | | | | | | | | | | | | | * EIP-1193: Implement new provider API * EIP-1193: Updated implementation * Remove test file * Fix tests * Update ping check * Update logic * PR feedback | ||||
* | Fix inpage.js event handler memory leak (#6177) | Graham Kaemmer | 2019-02-19 | 1 | -4/+5 |
| | | | Fixes #6176 | ||||
* | Fix all "var used instead of let or const" problems in inpage.js | Whymarrh Whitby | 2019-02-12 | 1 | -4/+4 |
| | |||||
* | 1102: Push publicConfigStore to next turn to avoid race conditiono (#5777) | Paul Bouchon | 2018-11-18 | 1 | -2/+6 |
| | |||||
* | ESLint fixes (#5775) | Whymarrh Whitby | 2018-11-17 | 1 | -4/+4 |
| | | | | | | * eslint . --fix * Upgrade all ESLint warnings to errors | ||||
* | EIP-1102: Update publicConfig store concurrently with approval | Paul Bouchon | 2018-11-10 | 1 | -29/+15 |
| | |||||
* | 1102: Fix inpage listener syntax (#5708) (#5709) | Noah I | 2018-11-09 | 1 | -2/+2 |
| | |||||
* | Cleanup | bitpshr | 2018-11-08 | 1 | -18/+10 |
| | |||||
* | 1102: use postMessage instead of injected scripts to bypass CSP | bitpshr | 2018-11-08 | 1 | -17/+13 |
| | |||||
* | wip | bitpshr | 2018-11-08 | 1 | -19/+34 |
| | |||||
* | Move experimental provider augmentation | bitpshr | 2018-11-06 | 1 | -13/+13 |
| | |||||
* | Add experimental RPC method support | bitpshr | 2018-11-06 | 1 | -2/+15 |
| | |||||
* | Mark origins as unapproved if user explicitly locks MetaMask | bitpshr | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | isApproved should return false | bitpshr | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | Remove internal listeners | bitpshr | 2018-11-06 | 1 | -6/+15 |
| | |||||
* | rebase | bitpshr | 2018-11-06 | 1 | -3/+3 |
| | |||||
* | Disable approval caching | bitpshr | 2018-11-06 | 1 | -1/+10 |
| | |||||
* | Differentiate locked and enabled | bitpshr | 2018-11-06 | 1 | -12/+9 |
| | |||||
* | Code bath | bitpshr | 2018-11-06 | 1 | -6/+10 |
| | |||||
* | Handle logout gracefully | bitpshr | 2018-11-06 | 1 | -5/+9 |
| | |||||
* | Fix race condition with publicConfigStore | bitpshr | 2018-11-06 | 1 | -5/+24 |
| | |||||
* | Move convenience methods to _metamask namespace | bitpshr | 2018-11-06 | 1 | -28/+55 |
| | |||||
* | Add isUnlocked provider hook | bitpshr | 2018-11-06 | 1 | -1/+10 |
| | |||||
* | Differentiate isEnabled and isApproved hook | bitpshr | 2018-11-06 | 1 | -3/+12 |
| | |||||
* | Update isEnabled check | bitpshr | 2018-11-06 | 1 | -1/+3 |
| | |||||
* | EIP-1102: add user privacy option | bitpshr | 2018-11-06 | 1 | -2/+2 |
| | |||||
* | EIP-1102: add isEnabled convenience method to provider | bitpshr | 2018-11-06 | 1 | -0/+14 |
| | |||||
* | EIP-1102: Add option to force-enable provider | bitpshr | 2018-11-06 | 1 | -2/+6 |
| | |||||
* | EIP-1102: updated implementation | bitpshr | 2018-11-06 | 1 | -12/+11 |
| | |||||
* | inpage - increase provider max listeners to avoid warnings | kumavis | 2018-10-18 | 1 | -0/+2 |
| | |||||
* | workaround - fix for drizzle | kumavis | 2018-10-09 | 1 | -2/+11 |
| | |||||
* | EIP-1102: Add deprecation message (#5353) | Paul Bouchon | 2018-09-26 | 1 | -0/+6 |
| | |||||
* | EIP-1102: Transitionary API (#5256) | Paul Bouchon | 2018-09-15 | 1 | -0/+19 |
| | |||||
* | Move inpage-provider and port-stream outside | Dan Finlay | 2018-08-21 | 1 | -1/+1 |
| | | | | | | | | | | With the creation of the [metamask-extension-provider](https://github.com/MetaMask/metamask-extension-provider) we have our first non-core module that is dependent on the inpage-provider and port-stream. To reduce the size of its dependencies, I have moved the [metamask-inpage-provider](https://github.com/MetaMask/metamask-inpage-provider) into its own module, as well as [extension-port-stream](https://github.com/MetaMask/extension-port-stream). This allows them to be more easily depended & iterated on by external projects. | ||||
* | Re-enable dapp reload on network change | Dan Finlay | 2018-06-15 | 1 | -0/+6 |
| | | | | | | We want to give devs some time to digest [this blog post](https://medium.com/metamask/breaking-change-no-longer-reloading-pages-on-network-change-4a3e1fd2f5e7) before we making a breaking change to our platform. Makes it easy to re-implement the change. | ||||
* | removed auto-reload.js, moved global web3 export to inpage.js | Erik Marks | 2018-06-13 | 1 | -18/+16 |
| | |||||
* | wip | Erik Marks | 2018-06-13 | 1 | -3/+20 |
| | |||||
* | Add JSDoc to various background scripts | bitpshr | 2018-04-19 | 1 | -1/+3 |
| | |||||
* | Add JSDoc to various background scripts | bitpshr | 2018-04-19 | 1 | -5/+6 |
| | |||||
* | Require loglevel singleton in each module that uses it | bitpshr | 2018-04-14 | 1 | -6/+1 |
| | |||||
* | build - correctly set METAMASK_ENV via envify | kumavis | 2018-04-04 | 1 | -1/+1 |
| | |||||
* | Add useful error when duplicate web3 is detected. | Dan Finlay | 2017-11-01 | 1 | -0/+7 |
| | | | | Fixes #2507 | ||||
* | Resolving that ugly merge. | Kevin Serrano | 2017-10-26 | 1 | -3/+7 |
| | |||||
* | Live update blacklist from Infura | Dan Finlay | 2017-07-27 | 1 | -0/+1 |
| | |||||
* | Reload the page when switching networks for sites that use web3 | frankiebee | 2017-05-25 | 1 | -18/+3 |
| | |||||
* | inpage - set web3.eth.defaultAccount correctly | kumavis | 2017-01-31 | 1 | -1/+1 |
| | |||||
* | continue rename selectedAccount to selectedAddress | kumavis | 2017-01-31 | 1 | -2/+2 |
| | |||||
* | Merged master into dev | Dan Finlay | 2016-12-20 | 1 | -8/+10 |
|\ | |||||
| * | inpage - temporarily disable ping stream | kumavis | 2016-12-20 | 1 | -8/+9 |
| | | |||||
| * | inpage - correctly listen for incomming messages | kumavis | 2016-12-08 | 1 | -1/+1 |
| | | |||||
* | | change all instances of selectedAddress to selectedAccount. | Kevin Serrano | 2016-11-22 | 1 | -1/+1 |
| | | |||||
* | | Linting to the max. | Kevin Serrano | 2016-11-12 | 1 | -1/+1 |
|/ | |||||
* | Wait for first metamask data to establish ping-pong stream. | Dan Finlay | 2016-10-19 | 1 | -1/+1 |
| | | | | | | Prevents infinite reload loops when dapps take too long to load. Fixes #746. | ||||
* | dapp reload - fixed disconnect detection via polling | kumavis | 2016-10-13 | 1 | -5/+16 |
| | |||||
* | inpage - cleanContextForImports fix | kumavis | 2016-08-23 | 1 | -1/+1 |
| | | | | set to undefined instead of deleting updates #447 | ||||
* | deps - local-message-stream extracted as module post-message-stream | kumavis | 2016-08-12 | 1 | -1/+1 |
| | |||||
* | typo fix | kumavis | 2016-07-19 | 1 | -1/+1 |
| | |||||
* | inpage - add try/catch to cleanContextForImports | kumavis | 2016-07-19 | 1 | -2/+10 |
| | |||||
* | appease the linting gods | kumavis | 2016-07-07 | 1 | -0/+1 |
| | |||||
* | web3 injection - use web3 dist for faster injection | kumavis | 2016-07-07 | 1 | -3/+1 |
| | |||||
* | Auto linted | Dan Finlay | 2016-06-22 | 1 | -6/+5 |
| | |||||
* | multiplex - rename control to autoreload | kumavis | 2016-05-23 | 1 | -2/+2 |
| | |||||
* | inpage - refactor for modularity | kumavis | 2016-05-23 | 1 | -143/+12 |
| | |||||
* | sync rpc fix | kumavis | 2016-05-20 | 1 | -11/+28 |
| | |||||
* | inpage - automatic dapp reload | kumavis | 2016-05-06 | 1 | -6/+64 |
| | |||||
* | inpage - add and remove 'define' from global context. updates #126 | kumavis | 2016-04-30 | 1 | -0/+15 |
| | |||||
* | inpage - use publicConfigStore for selectedAccount and sync provider | kumavis | 2016-04-16 | 1 | -28/+26 |
| | |||||
* | wiring - trusted-untrusted features + remote-store | kumavis | 2016-04-16 | 1 | -10/+20 |
| | |||||
* | inpage - defaultAccount - fix bug | kumavis | 2016-04-15 | 1 | -12/+13 |
| | |||||
* | web3 - set defaultAccount | kumavis | 2016-04-15 | 1 | -3/+4 |
| | |||||
* | clean - inpage remove unused xhr mitm code | kumavis | 2016-04-15 | 1 | -70/+0 |
| | |||||
* | Point rawtestrpc at new testrpc | Dan Finlay | 2016-04-13 | 1 | -2/+2 |
| | |||||
* | inpage - web3 class injection | kumavis | 2016-03-06 | 1 | -0/+5 |
| | |||||
* | internal rpc - add isMetamaskInternal flag | kumavis | 2016-02-16 | 1 | -1/+1 |
| | |||||
* | disable localhost interception | kumavis | 2016-02-16 | 1 | -63/+63 |
| | |||||
* | logging - add localhost interception message | kumavis | 2016-02-16 | 1 | -2/+5 |
| | |||||
* | intercept xhrs for localhost:8545 | kumavis | 2016-02-15 | 1 | -9/+88 |
| | |||||
* | context wiring - handle and log errors | kumavis | 2016-02-11 | 1 | -0/+3 |
| | |||||
* | sync - slow account polling to 4s | kumavis | 2016-02-09 | 1 | -1/+1 |
| | |||||
* | rpc - sync - add support for sync eth_accounts + eth_coinbase | kumavis | 2016-01-31 | 1 | -9/+46 |
| | |||||
* | rpc - sync - add warning for unsupported eth_accounts | kumavis | 2016-01-31 | 1 | -1/+14 |
| | |||||
* | add basic sync support | kumavis | 2016-01-31 | 1 | -2/+8 |
| | |||||
* | migrate to ProviderEngine zero-client | kumavis | 2015-12-19 | 1 | -55/+14 |
| | |||||
* | major - migrate to blockapps-web3 | kumavis | 2015-10-10 | 1 | -4/+40 |
| | |||||
* | load from storage on start and export unsignedTxs on remote connect | kumavis | 2015-08-02 | 1 | -1/+1 |
| | |||||
* | store unconfirmedTxs in chrome sync storage | kumavis | 2015-08-02 | 1 | -2/+4 |
| | |||||
* | builds smoothly + forwards txs to extension | kumavis | 2015-08-02 | 1 | -2/+8 |
| | |||||
* | build overhaul + basic structure | kumavis | 2015-08-02 | 1 | -0/+15 |