Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest v3 examples needed #496

Open
erosman opened this issue Aug 2, 2022 · 6 comments · Fixed by #526
Open

Manifest v3 examples needed #496

erosman opened this issue Aug 2, 2022 · 6 comments · Fixed by #526
Assignees
Labels
example New or updated example idle Issues and pull requests with no activity for three months.

Comments

@erosman
Copy link

erosman commented Aug 2, 2022

New MV3 examples shall be created and added to the current examples.

@GeorgeDaris
Copy link

I was about to ask about this. Can't wait to learn more about mv3.

@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jan 4, 2023
@notshriram
Copy link

Still no updates about this? It's been quite some time since support was added for mv3 in firefox.

@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Mar 24, 2023
@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Apr 24, 2023
@Huluk
Copy link

Huluk commented Apr 30, 2023

I wanted to start writing my first Firefox plugin today, but motivation dropped a fair bit when I discovered that there is no documentation for the freshest tech. I spent 3 hours trying to write a v3 manifest so far – no success.

@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label May 1, 2023
@Rob--W
Copy link
Member

Rob--W commented May 17, 2023

Re-opening. While #526 adds three MV3 examples, we still need more examples to demonstrate the differences between MV2 and MV3, notably in the background key.

PR #526 includes the following parts that are specific to MV3, along with a demo of the declarativeNetRequest API:

  • action (successor to browser_action)
  • host_permissions and how to request them.
  • optional_host_permissions (not implemented in Firefox yet) and optional_permissions.
  • web_accessible_resources (new syntax in MV3).
  • Using the action and options_ui APIs to have a place to run logic other than the background script (since the background key is not cross-browser yet; Chrome and Safari supports background.service_worker, Firefox and Safari supports background.scripts, but there is no key that is supported by all).
  • Not explicitly mentioned in the README, but the examples shows how to easily polyfill browser in MV3 in Chrome (basically globalThis.browser = chrome; when browser is undefined)

@Rob--W Rob--W reopened this May 17, 2023
@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jun 17, 2023
@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Jun 24, 2023
@rebloor rebloor added the example New or updated example label Jun 24, 2023
@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Jul 25, 2023
@ianustec
Copy link

Hi Guys,

i've the same issue. I opened an issue for this. No feedback right now.

https://github.com/mdn/webextensions-examples/issues/553

@Rob--W Rob--W self-assigned this Jan 15, 2024
@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Jan 16, 2024
@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label Feb 16, 2024
@Rob--W
Copy link
Member

Rob--W commented Apr 19, 2024

I prepared several MV3 examples with the intend to publish it here, at https://github.com/Rob--W/fosdem-2024-ext/tree/main/code-samples

While they have been referenced in a presentation/webinar, we haven't had the time to prepare MDN articles and publish these samples here.

@github-actions github-actions bot removed the idle Issues and pull requests with no activity for three months. label Apr 20, 2024
@github-actions github-actions bot added the idle Issues and pull requests with no activity for three months. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example New or updated example idle Issues and pull requests with no activity for three months.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants