aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/inpage.js
Commit message (Collapse)AuthorAgeFilesLines
* Add warning about reload on network changeMark Stacey2019-08-221-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 Stacey2019-07-161-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 Stacey2019-07-061-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 rejectionbitpshr2019-06-011-2/+2
|
* Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410)kumavis2019-05-041-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 Koul2019-04-251-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 Stevens2019-03-221-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 Bouchon2019-02-201-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 Kaemmer2019-02-191-4/+5
| | | Fixes #6176
* Fix all "var used instead of let or const" problems in inpage.jsWhymarrh Whitby2019-02-121-4/+4
|
* 1102: Push publicConfigStore to next turn to avoid race conditiono (#5777)Paul Bouchon2018-11-181-2/+6
|
* ESLint fixes (#5775)Whymarrh Whitby2018-11-171-4/+4
| | | | | | * eslint . --fix * Upgrade all ESLint warnings to errors
* EIP-1102: Update publicConfig store concurrently with approvalPaul Bouchon2018-11-101-29/+15
|
* 1102: Fix inpage listener syntax (#5708) (#5709)Noah I2018-11-091-2/+2
|
* Cleanupbitpshr2018-11-081-18/+10
|
* 1102: use postMessage instead of injected scripts to bypass CSPbitpshr2018-11-081-17/+13
|
* wipbitpshr2018-11-081-19/+34
|
* Move experimental provider augmentationbitpshr2018-11-061-13/+13
|
* Add experimental RPC method supportbitpshr2018-11-061-2/+15
|
* Mark origins as unapproved if user explicitly locks MetaMaskbitpshr2018-11-061-1/+1
|
* isApproved should return falsebitpshr2018-11-061-1/+1
|
* Remove internal listenersbitpshr2018-11-061-6/+15
|
* rebasebitpshr2018-11-061-3/+3
|
* Disable approval cachingbitpshr2018-11-061-1/+10
|
* Differentiate locked and enabledbitpshr2018-11-061-12/+9
|
* Code bathbitpshr2018-11-061-6/+10
|
* Handle logout gracefullybitpshr2018-11-061-5/+9
|
* Fix race condition with publicConfigStorebitpshr2018-11-061-5/+24
|
* Move convenience methods to _metamask namespacebitpshr2018-11-061-28/+55
|
* Add isUnlocked provider hookbitpshr2018-11-061-1/+10
|
* Differentiate isEnabled and isApproved hookbitpshr2018-11-061-3/+12
|
* Update isEnabled checkbitpshr2018-11-061-1/+3
|
* EIP-1102: add user privacy optionbitpshr2018-11-061-2/+2
|
* EIP-1102: add isEnabled convenience method to providerbitpshr2018-11-061-0/+14
|
* EIP-1102: Add option to force-enable providerbitpshr2018-11-061-2/+6
|
* EIP-1102: updated implementationbitpshr2018-11-061-12/+11
|
* inpage - increase provider max listeners to avoid warningskumavis2018-10-181-0/+2
|
* workaround - fix for drizzlekumavis2018-10-091-2/+11
|
* EIP-1102: Add deprecation message (#5353)Paul Bouchon2018-09-261-0/+6
|
* EIP-1102: Transitionary API (#5256)Paul Bouchon2018-09-151-0/+19
|
* Move inpage-provider and port-stream outsideDan Finlay2018-08-211-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 changeDan Finlay2018-06-151-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.jsErik Marks2018-06-131-18/+16
|
* wipErik Marks2018-06-131-3/+20
|
* Add JSDoc to various background scriptsbitpshr2018-04-191-1/+3
|
* Add JSDoc to various background scriptsbitpshr2018-04-191-5/+6
|
* Require loglevel singleton in each module that uses itbitpshr2018-04-141-6/+1
|
* build - correctly set METAMASK_ENV via envifykumavis2018-04-041-1/+1
|
* Add useful error when duplicate web3 is detected.Dan Finlay2017-11-011-0/+7
| | | | Fixes #2507
* Resolving that ugly merge.Kevin Serrano2017-10-261-3/+7
|
* Live update blacklist from InfuraDan Finlay2017-07-271-0/+1
|
* Reload the page when switching networks for sites that use web3frankiebee2017-05-251-18/+3
|
* inpage - set web3.eth.defaultAccount correctlykumavis2017-01-311-1/+1
|
* continue rename selectedAccount to selectedAddresskumavis2017-01-311-2/+2
|
* Merged master into devDan Finlay2016-12-201-8/+10
|\
| * inpage - temporarily disable ping streamkumavis2016-12-201-8/+9
| |
| * inpage - correctly listen for incomming messageskumavis2016-12-081-1/+1
| |
* | change all instances of selectedAddress to selectedAccount.Kevin Serrano2016-11-221-1/+1
| |
* | Linting to the max.Kevin Serrano2016-11-121-1/+1
|/
* Wait for first metamask data to establish ping-pong stream.Dan Finlay2016-10-191-1/+1
| | | | | | Prevents infinite reload loops when dapps take too long to load. Fixes #746.
* dapp reload - fixed disconnect detection via pollingkumavis2016-10-131-5/+16
|
* inpage - cleanContextForImports fixkumavis2016-08-231-1/+1
| | | | set to undefined instead of deleting updates #447
* deps - local-message-stream extracted as module post-message-streamkumavis2016-08-121-1/+1
|
* typo fixkumavis2016-07-191-1/+1
|
* inpage - add try/catch to cleanContextForImportskumavis2016-07-191-2/+10
|
* appease the linting godskumavis2016-07-071-0/+1
|
* web3 injection - use web3 dist for faster injectionkumavis2016-07-071-3/+1
|
* Auto lintedDan Finlay2016-06-221-6/+5
|
* multiplex - rename control to autoreloadkumavis2016-05-231-2/+2
|
* inpage - refactor for modularitykumavis2016-05-231-143/+12
|
* sync rpc fixkumavis2016-05-201-11/+28
|
* inpage - automatic dapp reloadkumavis2016-05-061-6/+64
|
* inpage - add and remove 'define' from global context. updates #126kumavis2016-04-301-0/+15
|
* inpage - use publicConfigStore for selectedAccount and sync providerkumavis2016-04-161-28/+26
|
* wiring - trusted-untrusted features + remote-storekumavis2016-04-161-10/+20
|
* inpage - defaultAccount - fix bugkumavis2016-04-151-12/+13
|
* web3 - set defaultAccountkumavis2016-04-151-3/+4
|
* clean - inpage remove unused xhr mitm codekumavis2016-04-151-70/+0
|
* Point rawtestrpc at new testrpcDan Finlay2016-04-131-2/+2
|
* inpage - web3 class injectionkumavis2016-03-061-0/+5
|
* internal rpc - add isMetamaskInternal flagkumavis2016-02-161-1/+1
|
* disable localhost interceptionkumavis2016-02-161-63/+63
|
* logging - add localhost interception messagekumavis2016-02-161-2/+5
|
* intercept xhrs for localhost:8545kumavis2016-02-151-9/+88
|
* context wiring - handle and log errorskumavis2016-02-111-0/+3
|
* sync - slow account polling to 4skumavis2016-02-091-1/+1
|
* rpc - sync - add support for sync eth_accounts + eth_coinbasekumavis2016-01-311-9/+46
|
* rpc - sync - add warning for unsupported eth_accountskumavis2016-01-311-1/+14
|
* add basic sync supportkumavis2016-01-311-2/+8
|
* migrate to ProviderEngine zero-clientkumavis2015-12-191-55/+14
|
* major - migrate to blockapps-web3kumavis2015-10-101-4/+40
|
* load from storage on start and export unsignedTxs on remote connectkumavis2015-08-021-1/+1
|
* store unconfirmedTxs in chrome sync storagekumavis2015-08-021-2/+4
|
* builds smoothly + forwards txs to extensionkumavis2015-08-021-2/+8
|
* build overhaul + basic structurekumavis2015-08-021-0/+15