1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/app/scripts/controllers
Mark Stacey 99b8f2d544
Fix provider approval metadata (#7349)
* Omit MetaMask `extensionId` from site metadata

The site metadata was updated in #7218 to include the extension id of
the extension connecting to MetaMask. This was done to allow external
extensions to connect with MetaMask, so that we could show the id on
the provider approval screen.

Unbeknownst to me at the time, the extension id was being set for all
connections to MetaMask from dapps. The id was set to MetaMask's id,
because the connections are made through MetaMask's contentscript.

This has been updated to only set the id when accepting a connection
from a different extension.

* Fix `siteMetadata` property names

In #7218 a few things were added to the site metadata, so the provider
approval controller was middleware was updated to accept the site
metadata as an object rather than accepting each property as a separate
parameter. Unfortunately we failed to notice that the site name and
icon were named differently in the site metadata than they were in the
provider approval controller, so the names of those properties were
unintentionally changed in the controller state.

The provider approval controller has been updated to restore the
original property names of `siteTitle` and `siteIcon`. An unused prop
that was added to the provider approval page in #7218 has also been
removed.
2019-11-04 17:28:50 -04:00
..
ens ENS Reverse Resolution support (#7177) 2019-11-01 15:24:00 -02:30
network I#6704 eth_getTransactionByHash will now check metamask's local history for pending transactions (#7327) 2019-10-30 12:15:54 -10:00
transactions I#6704 eth_getTransactionByHash will now check metamask's local history for pending transactions (#7327) 2019-10-30 12:15:54 -10:00
ab-test.js Add a/b test for full screen transaction confirmations (#7162) 2019-09-24 17:08:38 -04:00
app-state.js Update auto-logout to recognize idle time in background (#6593) 2019-05-13 13:46:09 -02:30
balance.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
cached-balances.js Save recent network balances in local storage (#5843) 2018-11-30 14:51:24 -08:00
detect-tokens.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
incoming-transactions.js Handle empty fetch response (#7111) 2019-10-09 11:41:18 -03:00
infura.js Require loglevel singleton in each module that uses it 2018-04-13 17:56:28 -04:00
onboarding.js Ensure seed phrase backup only shows up for new users (#6975) 2019-08-08 09:08:41 -02:30
preferences.js Add Estimated time to pending tx (#6924) 2019-10-31 23:21:28 -02:30
provider-approval.js Fix provider approval metadata (#7349) 2019-11-04 17:28:50 -04:00
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
recent-blocks.js feature: add Goerli support (#6459) 2019-04-17 15:04:49 -02:30
threebox.js Ensure 3box validation uses the correct address (#7235) 2019-10-01 10:03:13 -03:00
token-rates.js feature: integrate gaba/CurrencyRateController (#6570) 2019-05-31 18:14:22 -04:00

Controllers

Different controllers (in the sense of *VC *View-Controller).