interledger / web-monetization-projects

Coil projects that use Web Monetization. Primarily Coil's browser extension and related WM polyfills.
web-monetization-projects-coilhq.vercel.app
Apache License 2.0
81 stars 17 forks source link

Firefox Android Add-ons menu item action #1163

Open sublimator opened 3 years ago

sublimator commented 3 years ago

Some options for the FF android add-ons menu-item action:

1) Show the existing "popup"

2) Just route to the coil.com/settings page Two options: 1) just open a new tab each time 2) search for coil.com/settings and switch to that tab if it's already open

3) Create an alternate version of the "popup" that configures extension settings.

Currently the extension pauses monetization when document.visibilityState becomes "hidden". This means it would not be super easy to show the (otherwise) active tab streaming state in this "popup" tab.

Note that Samsung Internet actually shows the popup as a centered modal. We may want to consider a uniform experience, though it would necessarily be Lowest Common Denominator.

I don't see any UI to actually load an "options_page" in FF, but it may have been that the extensions that I had loaded didn't have any. TODO

On Chrome the "" permission implies "tabs". I guess because you have full "content script" access to all that information (albeit in a less convenient form)

Firefox makes you explicitly require "tabs" if you want to gain access to information exposed via the "tabs" API.

It should (and hopefully/maybe will) be a non-issue, but previously Google delayed publishing a version of the extension for nearly a month due to permissions changes.

Related:

1161

1162

sublimator commented 3 years ago

Note: I can't seem to find any way to get an "options_page" ( per manifest.json ) to show up on FF android