View Issue Details

IDProjectCategoryView StatusLast Update
0007333Talerwallet-corepublic2023-09-23 13:09
ReporterFlorian Dold Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
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.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

sebasjm

2023-04-13 16: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 16: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 13:52

developer   ~0020109

feedback was given, final issues addressed.
commit b34f3568e8c9dde73f11583a6b46ef1509990397

Issue History

Date ModifiedUsernameFieldChange
2022-09-07 19:46Florian DoldNew Issue
2022-09-07 19:46Florian DoldStatusnew => assigned
2022-09-07 19:46Florian DoldAssigned To => Florian Dold
2023-01-04 12:37Florian DoldSummaryintroduce 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 17:44Florian DoldAssigned ToFlorian Dold => sebasjm
2023-02-02 17:44Florian DoldAssigned Tosebasjm => Florian Dold
2023-02-02 17:44Florian DoldAssigned ToFlorian Dold => sebasjm
2023-02-19 22:32Florian DoldTarget Version => 0.9.3
2023-04-13 16:19sebasjmNote Added: 0020087
2023-04-13 16:20sebasjmAssigned Tosebasjm => Florian Dold
2023-04-13 16:20sebasjmStatusassigned => feedback
2023-04-13 16:23sebasjmNote Added: 0020088
2023-04-13 18:36Florian DoldCategorywallet (TS core) => wallet-core
2023-04-18 13:52sebasjmStatusfeedback => informing
2023-04-18 13:52sebasjmResolutionopen => fixed
2023-04-18 13:52sebasjmNote Added: 0020109
2023-09-23 13:07Christian GrothoffFixed in Version => 0.9.3
2023-09-23 13:09Christian GrothoffStatusinforming => closed