Hello,
I’m doing some initial testing, for Manifest v3.
When I’m trying to executeScript from background, I get “Error: Missing host permission for the tab”
I have enabled scripting and activeTab, and everything I can think of.
What am I missing?
It seems that all host permissions must be explicitly granted by user in Firefox MV3 (for now). Similarly how Safari is doing (and I really don’t like it). And I think Chrome wanted to do something like that as well but I don’t see it now anywhere…
Well, what I’m exactly looking for is to inject inside a (any) browser page.
I already have my devtool extension that works in MV2.
Now I need to figure out how to solve this permission problem with MV3.
Well, foreign extension pages are taboo , there is no injecting there no matter what.
And if you can’t inject into your own page, you could use “dynamic import” feature. That’s what I use in Chrome, I send a message to the tab and when it receives it, it will call “import('some_file.js')”. But that works only when injecting a file.