mdn / webextensions-examples

Example Firefox add-ons created using the WebExtensions API
https://developer.mozilla.org/en-US/Add-ons/WebExtensions
Mozilla Public License 2.0
4.07k stars 2.61k forks source link

devtools-panels example broken with manifest v3 #562

Open achingbrain opened 3 months ago

achingbrain commented 3 months ago

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

github-actions[bot] commented 3 months ago

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.