flagon-useralejs icon indicating copy to clipboard operation
flagon-useralejs copied to clipboard

Migrate Extension to MV3

Open Jyyjy opened this issue 1 year ago • 3 comments

This guide offers some best practices on building a cross browser extension. Including an example of how to remedy the differences of service workers and background scripts, which has been what is holding back MV3.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Build_a_cross_browser_extension

Edit: I only plan on targeting Chrome and Firefox. But I encourage others to add support for their favorite browsers.

Jyyjy avatar Mar 16 '24 23:03 Jyyjy

wanna contribute to this issue

Suvendu-UI avatar Jul 21 '24 16:07 Suvendu-UI

i am now targeting chrome

Suvendu-UI avatar Jul 21 '24 16:07 Suvendu-UI

This is a pretty large ticket. Make sure to test your changes withnpm test. You will have to change how playwright, the extension testing framework, loads the extension here: https://github.com/apache/flagon-useralejs/blob/master/test/e2e/spec/fixtures/extension.fixture.ts

According to the documentation here: https://playwright.dev/docs/chrome-extensions

Jyyjy avatar Jul 24 '24 19:07 Jyyjy