1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00
metamask-extension/app/scripts
Mark Stacey 20e16d41be
Improve Sentry state pre-initialization (#20491)
* Improve Sentry state pre-initialization

Previously the masked state snapshot sent to Sentry would be blank for
errors that occured during initialization. Instead we'll now include
some basic information in all cases, and a masked copy of the persisted
state if it happens after the first time the persisted state is read.

* Add test

* Fix crash when persisted state not yet fetched

* Add descriptions for initial state hooks

* Update comments to reflect recent changes

* Re-order imports to follow conventions

* Move initial state hooks back to module-level

The initial state hooks are now setup at the top-level of their module.
This ensures that they're setup prior to later imports. Calling a
function to setup these hooks in the entrypoint module wouldn't
accomplish this even if it was run "before" the imports because ES6
imports always get hoisted to the top of the file.

The `localStore` instance wasn't available statically, so a new state
hook was introduced for retrieving the most recent retrieved persisted
state.

* Fix error e2e tests
2023-08-17 09:29:05 -02:30
..
constants Convert app/scripts/constants -> Typescript (#17327) 2023-01-20 13:33:01 -07:00
controllers Rename BackupController to Backup (#20465) 2023-08-16 16:59:17 -02:30
lib Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
migrations Remove invalid tokensChainsCache state (#20495) 2023-08-17 09:04:30 -02:30
platforms Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
app-init.js fix: skip snow usage for MV3 test build (#19827) 2023-06-30 13:22:07 +01:00
background.js Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
contentscript.js solves 1114 (#20307) 2023-08-01 07:04:23 +01:00
detect-multiple-instances.js Warn about multiple MetaMask instances running (#13836) 2022-04-27 20:14:10 +02:00
detect-multiple-instances.test.js [MMI] Prevent multiple instances of MM at the same browser (#17856) 2023-03-02 10:17:45 -06:00
disable-console.js Disable warn logs in content-script (#19754) 2023-06-26 14:00:38 +03:00
first-time-state.js Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController (#17421) 2023-03-09 15:00:28 -06:00
init-globals.js MV3: fix injection of applyLavamoat variable in service worker (#14920) 2022-06-18 12:40:30 +05:30
inpage.js MV3: contentscript.js - re-activate streams when Service Worker terminates and then resets (#15494) 2022-09-13 14:20:08 -07:00
lockdown-more.js Bump SES to fix audit failure (#20434) 2023-08-14 16:30:34 -02:30
lockdown-run.js update ses@0.18.4 (#17521) 2023-04-27 21:31:52 +09:00
metamask-controller.actions.test.js Use importAccountWithStrategy from core KeyringController (#19815) 2023-08-17 09:11:51 +02:00
metamask-controller.js Fix infinite rerender on network change while active signature request (#20473) 2023-08-17 09:36:30 +02:00
metamask-controller.test.js Use importAccountWithStrategy from core KeyringController (#19815) 2023-08-17 09:11:51 +02:00
mmi-keyring-builder-factory.js [MMI] adds mmi code fences to mm controller (#18279) 2023-05-29 16:38:28 +01:00
sentry-install.js Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
translate.test.ts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
translate.ts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
ui.js Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
use-snow.js fix: skip snow usage for MV3 test build (#19827) 2023-06-30 13:22:07 +01:00