1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Mark Stacey 0a3241e30d Fix pre-initialization UI error state capture (#20529)
In the case where an error is thrown in the UI before initialization
has finished, we aren't capturing the application state correctly for
Sentry errors. We had a test case for this, but the test case was
broken due to a mistake in how the `network-store` was setup (it was
not matching the behavior of the real `local-tstore` module).

The pre-initialization state capture logic was updated to rely solely
upon the `localStore` instance used by Sentry to determine whether the
user had opted-in to metrics or not. This simplifies the logic a great
deal, removing the need for the `getMostRecentPersistedState` state
hook. It also ensures that state is captured corretly pre-
initialization in both the background and UI.
2023-08-18 16:35:03 -02:30
..
account-import-strategies
constants
controllers Capture app and migration version (#20458) 2023-08-16 14:47:01 -02:30
lib Fix pre-initialization UI error state capture (#20529) 2023-08-18 16:35:03 -02:30
migrations Remove invalid tokensChainsCache state (#20495) 2023-08-17 14:23:54 -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 Fix pre-initialization UI error state capture (#20529) 2023-08-18 16:35:03 -02:30
contentscript.js Reset extensions streams on chromium prerender workaround (#19727) 2023-06-27 09:10:04 -07:00
detect-multiple-instances.js
detect-multiple-instances.test.js
disable-console.js Disable warn logs in content-script (#19754) 2023-06-26 14:00:38 +03:00
first-time-state.js
init-globals.js
inpage.js
lockdown-more.js Bump SES to fix audit failure (#20434) 2023-08-16 22:51:49 -02:30
lockdown-run.js
metamask-controller.actions.test.js Update @metamask/phishing-controller to v4.0.0 (#18840) 2023-07-31 17:55:48 -02:30
metamask-controller.js Capture app and migration version (#20458) 2023-08-16 14:47:01 -02:30
metamask-controller.test.js Remove fallback phishing warning configuration (#20327) 2023-08-01 00:17:07 -02:30
mmi-keyring-builder-factory.js
sentry-install.js
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 Fix pre-initialization UI error state capture (#20529) 2023-08-18 16:35:03 -02:30
use-snow.js fix: skip snow usage for MV3 test build (#19827) 2023-06-30 13:22:07 +01:00