nebulasio / WebExtensionWallet

170 stars 58 forks source link

Ubuntu closes popup on file prompt #21

Open chucklam opened 6 years ago

chucklam commented 6 years ago

Problem:

I want to import a wallet in the Send-TX tab. This is what I initially see when I have the extension opened. screenshot from 2018-05-21 00-19-03

When I click on the 'SELECT WALLET FILE' button, a file dialog shows up, but the extension popup goes away. screenshot from 2018-05-21 00-19-44 Selecting a file doesn't do anything. I believe it's because Chrome has closed the extension app already so there's nothing for the call to return to.

This is a bug with Ubuntu Chrome. This affects MetaMask too, and right now they use a hack around it. https://github.com/MetaMask/metamask-extension/issues/1136

Versions:

yupnano commented 6 years ago

Thanks for your feedback. We have noticed this problem before, and there is a tricky solution https://github.com/ChengOrangeJu/WebExtensionWallet/issues/4

I'll try to detect system info, and if it's Ubuntu, then extension will pop up a new tab for user to import their wallet file.

hostgame commented 6 years ago

Quick workaround:

  1. Open chrome-extension://bcohmciamomnpioaljnpiaglaepibjke/html/sendNas.html
  2. Import your wallet
  3. Now it also loaded in popup