webextensions-examples icon indicating copy to clipboard operation
webextensions-examples copied to clipboard

devtools-panels example broken with manifest v3

Open achingbrain opened this issue 1 year ago • 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

achingbrain avatar May 20 '24 09:05 achingbrain