1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui
Mark Stacey 22f931e6b2
Prevent automatic rejection of confirmations (#13194)
* Prevent automatic rejection of confirmations

Confirmations are now only automatically rejected if a user explicitly
closes the notification window. If we close the window programmatically
because there are no notifications left to show, nothing gets rejected.

This partially avoids a race condition where a confirmation gets
rejected automatically without the user having seen the confirmation
first. This could happen if the confirmation was processed just as the
notification window was being closed.

It's still possible for a confirmation that the user has never seen to
get rejected as a result of the user closing the window. But at least
now it's no longer possible for a confirmation to get rejected in this
manner after the user resolves the last confirmation in the queue.

* Fix bug that prevented automatic closure detection

All windows were being detected as explicit window closures,
essentially just as they were previously, because this variable was
cleared too soon.

* Re-open popup when necessary

After the window is automatically closed, a confirmation may have been
queued up while the window was closing. If so, the popup is now re-
opened.
2022-01-05 13:39:19 -03:30
..
__mocks__ Increase Jest unit test coverage for the Swaps feature to ~60% (#11343) 2021-07-02 08:48:34 -05:00
components Fix account-menu styles lint failure (#13215) 2022-01-05 12:23:19 -03:30
contexts Using EIP-1559 V2 for approve transaction flow (#12906) 2021-12-06 22:09:35 +05:30
css Updating storybook webpack config and changing font paths (#13028) 2022-01-04 16:41:10 -08:00
ducks Feat/collectibles the return (#12970) 2021-12-13 17:41:10 -06:00
helpers Feat/collectibles the return (#12970) 2021-12-13 17:41:10 -06:00
hooks Choose accounts refactor (#13039) 2021-12-14 18:54:46 -05:00
pages Prevent automatic rejection of confirmations (#13194) 2022-01-05 13:39:19 -03:30
selectors Remove duplicate selector getPermissionSubjectsMetadata (#13144) 2021-12-22 16:31:48 -03:30
store Prevent automatic rejection of confirmations (#13194) 2022-01-05 13:39:19 -03:30
1.INTRODUCTION.stories.mdx Docs/12367 Adding storybook essentials addons (#12393) 2021-10-29 07:22:07 -10:00
2.DOCUMENTATION.stories.mdx Updating storybook documentation guidelines (#12957) 2021-12-07 10:24:06 -08:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00