fregante / webext-alert

alert() for background pages/workers in Web Extensions
https://webext-alert.vercel.app
MIT License
10 stars 0 forks source link

Firefox support #1

Closed fregante closed 3 months ago

fregante commented 8 months ago

Impossible due to https://github.com/w3c/webextensions/issues/170#issuecomment-1902186061

I might have to do this via page on web server, but that means it won't work offline.

More ideas might come by reading https://github.com/w3c/webextensions/issues/259#issuecomment-1221394076

Maybe executeScript + matchAboutBlank?

Maybe window.open() is fine in MV2 Firefox?

fregante commented 3 months ago

I might have to do this via page on web server

It's the only way that doesn't require additional files because programmatically opening data: URIs is just not allowed in Firefox: https://blog.mozilla.org/security/2017/11/27/blocking-top-level-navigations-data-urls-firefox-59/