Giter Site home page Giter Site logo

Comments (6)

Rob--W avatar Rob--W commented on July 17, 2024 1

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)

from webextensions-examples.

GeorgeDaris avatar GeorgeDaris commented on July 17, 2024

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

from webextensions-examples.

notshriram avatar notshriram commented on July 17, 2024

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

from webextensions-examples.

Huluk avatar Huluk commented on July 17, 2024

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.

from webextensions-examples.

ianustec avatar ianustec commented on July 17, 2024

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

from webextensions-examples.

Rob--W avatar Rob--W commented on July 17, 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.

from webextensions-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.