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

Experiments with extension manifest v3 for Chromium #984

Merged
merged 46 commits into from
Jun 13, 2023

Conversation

Jaifroid
Copy link
Member

This PR is for demonstrating the code used to run a Chromium extension with the webextension manifest v3. See #755. The code is experimental. Not for merging.

www/article.html Fixed Show fixed Hide fixed
www/article.html Fixed Show fixed Hide fixed
@Jaifroid
Copy link
Member Author

Jaifroid commented May 7, 2023

As I have incorporated some innovations and bugfixes from here into master, I have had to rebase and force-push this branch.

We are at the stage where we can now fully support Chromium extensions using MV3, with the remote PWA workaround we have already been using for Firefox.

The problem will be that we will have to keep supporting MV2 in Firefox because FF hasn't yet enabled the background Service Worker in MV3. But even then, it will only be for the latest browser, so we will have to keep an MV2 version, arguably also for Chromium browsers, as only Chromium >88, or possibly >=90 is supported.

@Jaifroid
Copy link
Member Author

Ready to be merged, pending decision on #1017.

@Jaifroid Jaifroid removed the do-not-merge Sample code label Jun 13, 2023
@Jaifroid Jaifroid modified the milestones: v4.0, v3.9 Jun 13, 2023
@Jaifroid
Copy link
Member Author

Code now builds nightly versions of both MV2 and MV3 extensions for Chromium, while building the Firefox extension only as MV2 for now. Until Firefox starts to support Service Workers as background scripts, there is no point trying to change it to MV3 (and especially as there is no shutdown date for MV2 on FF as compared to Chrome).

@Jaifroid Jaifroid merged commit bd7393e into main Jun 13, 2023
@Jaifroid Jaifroid deleted the Extension-manifest-v3 branch June 13, 2023 20:21
@Jaifroid Jaifroid modified the milestones: v4.0, v3.9 Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensions Code relating to the production or running of browser extensions security
Projects
None yet
2 participants