interledger / web-monetization-extension

An open-source browser extension that enables Web Monetization.
Apache License 2.0
49 stars 3 forks source link

feat!: support manifest v3 #313

Closed sidvishnoi closed 3 months ago

sidvishnoi commented 3 months ago

Context

Closes https://github.com/interledger/web-monetization-extension/issues/23

Changes proposed in this pull request

Changes proposed in this pull request


Questions:

raducristianpopa commented 3 months ago

Extension builds preview

Name Link
Latest commit ea9ee330a8f0c5c7249f0268f78c4c2ecff339f0
Latest job logs Run #9495986026
BadgeDownload
BadgeDownload
raducristianpopa commented 3 months ago
1. Should I get rid of manifest v2 stuff? I tested it works fine in Firefox 110 even.

I would keep them for now. We can probably default to using MV3 (renaming manifestv3.json to manifest.json) and keep the old manifest for the moment.

2. Should I show the permission error/prompt on all screens?

i don't think so, since the button will be disabled and we check the permission when the user submits the form.

sidvishnoi commented 3 months ago

Should I show the permission error/prompt on all screens?

i don't think so, since the button will be disabled and we check the permission when the user submits the form.

So, content script also won't be injected if current URL isn't doesn't have the permission. We ask for the permission only on connect screen, but if some has connected before, and they update the extension, they won't see that they haven't given the permissions. Also valid in case the permission is removed later (for some reason - like mistake or browsers being more strict in future with privacy considerations, like removing permission after N days).