View Issue Details

IDProjectCategoryView StatusLast Update
0007333Talerwallet-corepublic2023-09-23 15:09
ReporterFlorian Dold Assigned ToFlorian Dold  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007333: introduce minimalistic JS API for wallet that can be used by SPAs
DescriptionWith an approach similar to MetaMask, we can provide a simple talerWallet.handleUri API into the browser that can be used by SPAs to handle URIs without a navigation.

Additionally, the wallet is currently over-eager to open taler:// URIs. We should remove this behavior once the SPA API is available. Otherwise, *every* taler://... link on any page would trigger the wallet.
TagsNo tags attached.

Activities

sebasjm

2023-04-13 18:19

developer   ~0020087

webex now injects a script that add the taler support API

this is an example of can be done programmatically

window.location = window.taler.api.convertURIToWebExtensionPath("taler://pay/asd")

it should not be needed, since after the script run every link with href.value that start with taler should be intercepted
also, the scripts observes DOM mutation for new links that appears after initial load (like in the spa)

sebasjm

2023-04-13 18:23

developer   ~0020088

I have intentionally commented out this 2 lines

https://git.taler.net/wallet-core.git/tree/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts#n50
https://git.taler.net/wallet-core.git/tree/packages/taler-wallet-webextension/src/taler-wallet-interaction-loader.ts#n55

that check the presences of the taler support meta tag, this allows testing without updating bank.demo.taler.net and the merchant payments pages.
This should be un-commented after merchant and bank is updated

sebasjm

2023-04-18 15:52

developer   ~0020109

feedback was given, final issues addressed.
commit b34f3568e8c9dde73f11583a6b46ef1509990397

Issue History

Date Modified Username Field Change
2022-09-07 21:46 Florian Dold New Issue
2022-09-07 21:46 Florian Dold Status new => assigned
2022-09-07 21:46 Florian Dold Assigned To => Florian Dold
2023-01-04 13:37 Florian Dold Summary introduce minimlistic JS API for wallet that can be used by SPAs => introduce minimalistic JS API for wallet that can be used by SPAs
2023-02-02 18:44 Florian Dold Assigned To Florian Dold => sebasjm
2023-02-02 18:44 Florian Dold Assigned To sebasjm => Florian Dold
2023-02-02 18:44 Florian Dold Assigned To Florian Dold => sebasjm
2023-02-19 23:32 Florian Dold Target Version => 0.9.3
2023-04-13 18:19 sebasjm Note Added: 0020087
2023-04-13 18:20 sebasjm Assigned To sebasjm => Florian Dold
2023-04-13 18:20 sebasjm Status assigned => feedback
2023-04-13 18:23 sebasjm Note Added: 0020088
2023-04-13 20:36 Florian Dold Category wallet (TS core) => wallet-core
2023-04-18 15:52 sebasjm Status feedback => resolved
2023-04-18 15:52 sebasjm Resolution open => fixed
2023-04-18 15:52 sebasjm Note Added: 0020109
2023-09-23 15:07 Christian Grothoff Fixed in Version => 0.9.3
2023-09-23 15:09 Christian Grothoff Status resolved => closed