Improve extension behavior by updating the txInfoFromUrl case
Cashtab is able to pre-populate the SendXec screen with a transaction by the use of limited URL params. The format, for now, is slightly different compared with bip21. I plan to add bip21 string in URL support in a later diff, in a way that preserves backward compatibility.
This param in URL approach is how a webapp is able to pass transaction information to the extension. Based on user feedback from users of ecash.land, there are some high impact improvements available to improve the user experience. These are implemented in this diff.
If a Cashtab window has valid tx params in the URL that populate a valid tx,
- Close the window after the tx is complete.
- Disable multi-send as this is not currently supported by URL params or bip21
- Disable input fields (address and amount. For now, the Cashtab Msg field is not disabled as app-set opreturns are not yet supported).
- Remove forced modal confirmation (so, the modal is a user setting). Instead of forcing a confirmation modal, make sure the tx values are clearly displayed.