Josh Stevens
2aaec1d9fb
Stop reloading dapps on network change allowing dapps to decide if it should 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`
6 years ago
Paul Bouchon
2f7d449427
EIP-1193: standard provider API ( #6170 )
...
* EIP-1193: Implement new provider API
* EIP-1193: Updated implementation
* Remove test file
* Fix tests
* Update ping check
* Update logic
* PR feedback
6 years ago
Graham Kaemmer
89c4353408
Fix inpage.js event handler memory leak ( #6177 )
...
Fixes #6176
6 years ago
Whymarrh Whitby
f5eb1512d4
Fix all "var used instead of let or const" problems in inpage.js
6 years ago
Paul Bouchon
7fe37276a1
1102: Push publicConfigStore to next turn to avoid race conditiono ( #5777 )
6 years ago
Whymarrh Whitby
1988e1e96b
ESLint fixes ( #5775 )
...
* eslint . --fix
* Upgrade all ESLint warnings to errors
6 years ago
Paul Bouchon
c317624854
EIP-1102: Update publicConfig store concurrently with approval
6 years ago
Noah I
8bed073f20
1102: Fix inpage listener syntax ( #5708 ) ( #5709 )
6 years ago
bitpshr
718393f89a
Cleanup
6 years ago
bitpshr
a224b71837
1102: use postMessage instead of injected scripts to bypass CSP
6 years ago
bitpshr
1ce3591c8e
wip
6 years ago
bitpshr
b3f428fd1f
Move experimental provider augmentation
6 years ago
bitpshr
879997af51
Add experimental RPC method support
6 years ago
bitpshr
9984f7edeb
Mark origins as unapproved if user explicitly locks MetaMask
6 years ago
bitpshr
991e08e346
isApproved should return false
6 years ago
bitpshr
72730b3929
Remove internal listeners
6 years ago
bitpshr
cc27a09a1a
rebase
6 years ago
bitpshr
d4171ccea5
Disable approval caching
6 years ago
bitpshr
cc1bab6ebb
Differentiate locked and enabled
6 years ago
bitpshr
d7618bd5c6
Code bath
6 years ago
bitpshr
ba40fcbcb4
Handle logout gracefully
6 years ago
bitpshr
f35466a247
Fix race condition with publicConfigStore
6 years ago
bitpshr
32630b68df
Move convenience methods to _metamask namespace
6 years ago
bitpshr
84874a639d
Add isUnlocked provider hook
6 years ago
bitpshr
573139b935
Differentiate isEnabled and isApproved hook
6 years ago
bitpshr
3a2ade4e84
Update isEnabled check
6 years ago
bitpshr
226601a956
EIP-1102: add user privacy option
6 years ago
bitpshr
bfcb73ad53
EIP-1102: add isEnabled convenience method to provider
6 years ago
bitpshr
89b4aa5d62
EIP-1102: Add option to force-enable provider
6 years ago
bitpshr
c76c9ca2c8
EIP-1102: updated implementation
6 years ago
kumavis
fa36dbf981
inpage - increase provider max listeners to avoid warnings
6 years ago
kumavis
45feb43f30
workaround - fix for drizzle
6 years ago
Paul Bouchon
9359fc875d
EIP-1102: Add deprecation message ( #5353 )
6 years ago
Paul Bouchon
2ec09362c5
EIP-1102: Transitionary API ( #5256 )
6 years ago
Dan Finlay
6ce119d1fb
Move inpage-provider and port-stream outside
...
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.
6 years ago
brunobar79
bea1cf3f3c
clean up
6 years ago
brunobar79
f7ad978474
camera working back and forth
6 years ago
brunobar79
0209148609
fixes
6 years ago
brunobar79
0940ecd57b
added camera snippet injection to inpage.js
6 years ago
Dan Finlay
3a6cc3c8fd
Re-enable dapp reload on network change
...
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.
7 years ago
Erik Marks
b982961381
removed auto-reload.js, moved global web3 export to inpage.js
7 years ago
Erik Marks
f461bd8812
wip
7 years ago
bitpshr
1ef6528921
Add JSDoc to various background scripts
7 years ago
bitpshr
c9f83fe8bc
Add JSDoc to various background scripts
7 years ago
bitpshr
7129d7c0f3
Require loglevel singleton in each module that uses it
7 years ago
kumavis
00657e14a8
build - correctly set METAMASK_ENV via envify
7 years ago
Dan
ec6c3c33bd
Merge branch 'master' into NewUI-flat-merge-with-master
7 years ago
Dan Finlay
5ce94e69b3
Add useful error when duplicate web3 is detected.
...
Fixes #2507
7 years ago
Kevin Serrano
b9bbf8f329
Resolving that ugly merge.
7 years ago
kumavis
da16f39626
Merge branch 'master' of github.com:MetaMask/metamask-extension into greenkeeper/initial
7 years ago