apache / flagon-useralejs

Apache Flagon UserALE is a comprehensive, thin-client behavioral logging tool
https://flagon.apache.org/
Apache License 2.0
26 stars 26 forks source link

Migrate Extension to MV3 #421

Open Jyyjy opened 6 months ago

Jyyjy commented 6 months ago

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.

Suvendu-UI commented 2 months ago

wanna contribute to this issue

Suvendu-UI commented 2 months ago

i am now targeting chrome

Jyyjy commented 2 months ago

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