mdn/webextensions-examples

devtools-panels example broken with manifest v3

achingbrain opened this issue · 1 comments

What information was incorrect, unhelpful, or incomplete?

The README says:

Inject content script: this sends a message to the extension's background script, asking it to inject a given content script in the active page.

The background script uses browser.tabs.executeScript to do this, but executeScript is undefined with manifest v3.

Flipping the manifest version back to 2 makes it work, but I don't think new extensions that use manifest v2 are accepted any more.

What did you expect to see?

The example should work.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.