web-monetization-extension
web-monetization-extension copied to clipboard
WM ext browser support - Edge
Context
WM extension compatibility with the Microsoft Edge browser.
Todos
TBC
Bibi to do: test on Edge and then should be ready to close
To test: How it works in split-window mode (https://github.com/interledger/web-monetization-extension/pull/366#discussion_r1673836423)
In split view, the extension is only taking into the consideration only the first pane from the split view when updating icon. If we are on a non-monetized website in the first pane and on a web monetized one in the second one, the icon will have the non-monetized website identifier.
Arc's split view should be checked as well. Vivaldi's tab tiling as well.
Blocked as we wait for the MS support team
https://github.com/microsoft/MicrosoftEdge-Extensions/discussions/102 🤷🏽♂️🤦🏽 https://github.com/uBlockOrigin/uBlock-issues/issues/2945
Found the sender port in Runtime.Port message handler returns correct tab ID 🎉
port.onMessage.addListener((message, sendingPort) => {
console.log(sendingPort.sender?.tab?.id);
});
So, we can make a short connection on content script inject and store tabId for use in future messages?
Edit: or instead of tabActivated event, rely on focusChange
messages from content script.
Everything works once we get right tabId, except Edge doesn't update the icon (even with correct tabId!)