1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/app
Mark Stacey 943453cfb2
Simplify MV3 initialization (#16559)
* Simplify MV3 initialization

The MV3 initialization logic was complicated and introduced race
difficult-to-reproduce race conditions when dapps connect during
initialization.

It seems that problems were encountered after the UI tried to connect
before the background was initialized. To address this, the
initialization step was _delayed_ until after the first connection.
That first connection was then passed into the initialization function,
and setup properly after initialization had begun.

However, this special treatment is only given for the first connection.
Subsequent connections that still occur during initialization would
fail. This also results in the initialization being needlessly delayed,
which is concerning given that our main performance goal is to speed it
up.

* Setup connect listeners before controller initialization

* Add comments

* Add comment explaining isInitialized step
2022-11-24 10:02:05 -03:30
..
_locales Adding ITA translations (#15748) 2022-11-22 10:27:31 -06:00
build-types BETA - Update to sentence case (#16590) 2022-11-21 08:44:46 -06:00
fonts UI-14395: typography v2 (#15408) 2022-08-18 10:51:53 -07:00
images Adding static icon names to test env file (#16078) 2022-11-18 22:28:38 +05:30
manifest Revert "Fix permissions in MV3 manifest (#15980)" (#16021) 2022-09-30 20:00:59 +05:30
scripts Simplify MV3 initialization (#16559) 2022-11-24 10:02:05 -03:30
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
home.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
loading.html
notification.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
popup.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
trezor-usb-permissions.html chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00