Metamask-extension: Signature request popup closes instantly

Created on 22 Nov 2018  路  5Comments  路  Source: MetaMask/metamask-extension

Describe the bug

When implementing Metamask login we found that the signature verification popup either closes after a few seconds or does not appear at all, even though the request are stacked and visible when clicking the Metamask extension item.

To Reproduce

I verified that the same thing happens on MyEtherWallet and made a couple of recordings:

To reproduce, follow the steps shown in the videos or simply click "LOG IN WITH METAMASK" here.

Expected behavior

I would expect the popup to persist until the user has confirmed or cancelled.

Browser details (please complete the following information):

  • Chrome Version 70.0.3538.102
  • Metamask 5.0.3
  • Mac OS Mojave
P2-sooner T00-bug bounty worthy

All 5 comments

Same issue on https://idex.market when doing trades. So far I identified it being caused by calling .enable() periodically - because we are checking if user didn't switched account using pooling.

So maybe it's similar on your mentioned services, and calling enable() is hiding existing opened MM popups. It's def bug of MM, but kind of can be workarounded - on IDEX will be releasing more async way of getting account soon.

Thanks for the report @b-mueller, we鈥檒l check into this.

Hi @jurosh. A provider should only be enabled once for each page load. Thereafter, to poll for account change, just check eth_accounts or another similar RPC method instead of calling enable each time. This probably isn鈥檛 related to this issue, but may still help your specific use case.

hey folks, I can no longer reproduce this on Idex or MEW and can't load OP's example dapp. Are you still experiencing this issue?

Nope, I can't reproduce it anymore either.

@bdresser Hey, on IDEX we switched to model where we ask for Metamask permission only before doing actions. Eg. we ask only before user unlocking wallet, trying to trade, deposit.

But just tried to call enable() multiple times and MM popup worked fine = looks like issue is fixed. :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aakilfernandes picture aakilfernandes  路  3Comments

glitch003 picture glitch003  路  3Comments

1blockologist picture 1blockologist  路  3Comments

kumavis picture kumavis  路  3Comments

DISC30 picture DISC30  路  3Comments