1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/app
Alex Donesky d359429f04
Stop GasFeeController polling when pop closes (#11746)
* Stop GasFeeController polling when pop closes

* Stop estimate gas polling on window unload

* lint + comments

* Improve client closed logic

* lint

* Add back _beforeUnload on unmount in gas-modal-page-container

* Add full check and call onClientClosed method for notifcation environment

* Add gas pollingToken tracking to appStateController and use to disconnect polling for each environment type

* remove unused method

* move controller manipulation logic from background.js to metamask-controller, disaggregate methods

* add beforeunload handling to reset gas polling tokens from root of send page

* cleanup, lint and address feedback

* clear appState gasPollingTokens when all instances of all env types are closed, fix pollingTokenType arg from onEnvironmentTypeClosed call in metamask-controller

* mock new methods to fix tests

* final bit of cleanup + comments

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-08-04 16:53:13 -05:00
..
_locales Show advanced options, and hide radio buttons, for advanced gas settings users (#11751) 2021-08-04 19:04:42 -02:30
fonts Add euclid fontface (#9018) 2020-07-27 17:15:44 -05:00
images Add support for Polygon (#11545) 2021-07-20 19:17:15 +02:00
manifest Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
scripts Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
home.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
phishing.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
popup.html Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00