1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers/permissions
Mark Stacey 5c5c90e70a
Ignore permission approval/rejection if request is missing (#7638)
Attempts to approve or reject a permissions request that is no longer
pending will now emit a warning instead of throwing an exception.

I _think_ this can happen by clicking 'Submit' on the Permission
Connect screen twice, though I've been unable to reproduce that. I know
that it can be done if using multiple windows though. While it is
possible we have a UI bug somewhere (e.g. maybe we're not preventing
'Submit' from being clicked twice), I don't think it's possible to
eliminate the chance of this happening altogether, so we'd best prepare
for it.
2019-12-03 23:13:47 -04:00
..
index.js Ignore permission approval/rejection if request is missing (#7638) 2019-12-03 23:13:47 -04:00
loggerMiddleware.js Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
methodMiddleware.js Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
permissions-safe-methods.json Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
restrictedMethods.js Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00