web-monetization-projects
web-monetization-projects copied to clipboard
FF not removing handler.html from background page
Can reproduce by logging out, then navigating to coil.com and refreshing
"load" event on the iframe does not seem to be firing
https://github.com/coilhq/web-monetization-projects/blob/acdba6106cee9f6bae8272f6bd7fb4acde754e73/packages/coil-extension/src/background/services/SiteToken.ts#L23-L31
It seems that there are some Web Extensions implementation differences to Chrome:
- The content script does not run in the coil.com/handler.html iframe injected into the background page
- Upon extension reload: FF runs all the content scripts in all open tabs
Per 1, getting the auth token via injecting the handler.html page won't work on FF