1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages
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
..
add-token Various UI fixes (#11512) 2021-07-13 19:06:12 -07:00
asset add scroll function to jump to the top of screen (#11386) 2021-06-29 15:08:31 -05:00
confirm-add-suggested-token remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
confirm-add-token remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
confirm-approve Fix #11703 - Provide wiring for approval modal (#11711) 2021-08-02 09:07:15 -05:00
confirm-decrypt-message move conversion utils to shared folder (#11451) 2021-07-06 12:48:49 -05:00
confirm-deploy-contract Add confirm-deploy-contract component to Storybook (#11211) 2021-06-15 14:20:15 -07:00
confirm-encryption-public-key add confirm-encryption-public-key component to Storybook (#11364) 2021-07-20 09:29:38 -07:00
confirm-send-ether rely upon gas fee controller for gas price estimates (#11511) 2021-07-16 11:06:32 -05:00
confirm-send-token Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00
confirm-token-transaction-base Adding edit navigation button flow back to send token flow (#11335) 2021-06-23 18:50:24 -05:00
confirm-transaction Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
confirm-transaction-base Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
confirm-transaction-switch remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
confirmation Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData (#11268) 2021-06-09 15:18:38 -07:00
connected-accounts remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
connected-sites remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
create-account Various UI fixes (#11512) 2021-07-13 19:06:12 -07:00
error remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
first-time-flow improve password-manager metadata attributes (#11690) 2021-08-02 10:40:44 -07:00
home Swaps: Add conditional routing to new APIs based on a feature flag (#11470) 2021-07-09 10:24:00 -05:00
keychains Validating seed phrase in restoration flow (#11586) 2021-07-22 10:34:53 -07:00
lock remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
mobile-sync Fixing unlocalized strings (#11281) 2021-06-12 15:25:24 -07:00
onboarding-flow Add recovery-phrase views for new onboarding flow (#11434) 2021-07-07 19:10:12 -05:00
permissions-connect Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
routes Fix #10173 - Prevent lag in external monitors when using Mac + Chrome (#10952) 2021-04-30 10:28:07 -05:00
send Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
settings Handling non-numeric input for chain id in network form (#11537) 2021-07-15 14:11:43 -07:00
swaps Fall back to aggregator name when icon is unavailable (Swaps Load View) (#11718) 2021-08-03 12:09:39 -07:00
unlock-page replacing seed phrase with Secret Recovery Phrase (#10994) 2021-05-07 09:07:43 -04:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
pages.scss remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00