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

Wanted: Migrating Chrome extension Manifest V2 to V3 #3174

Open
3 of 7 tasks
sinsinpub opened this issue Dec 3, 2021 · 0 comments
Open
3 of 7 tasks

Wanted: Migrating Chrome extension Manifest V2 to V3 #3174

sinsinpub opened this issue Dec 3, 2021 · 0 comments

Comments

@sinsinpub
Copy link
Contributor

sinsinpub commented Dec 3, 2021

According Google's timeline, we have 1 year remaining to migrate Manifest v2 to v3 if we gonna let our extension accepted by future Chrome and released to webstore. (https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/)

Methods they introduced: https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/
TODO Checklist accordingly:

  • Rework on background pages (to be evaluated)
  • Replace chrome.webRequest with chrome.declarativeNetRequest (gakada may finish it?)
  • Update host permissions (easy modification)
  • Update browser_action (easy modification)
  • Update content_security_policy (docs reviewing needed)
  • Update web_accessible_resources (docs reviewing needed)
  • Replace deprecated API: chrome.extension.getURL() (others not found?)

I guess the most hard part is the one that rewriting background scripts with service workers.
chrome.webRequest only affects the Gadget Block Bypass requests redirection.

However, because Manifest V3 is available beginning with Chrome 88, and I'm still using Chromium 60, so basically I will not be able to test v3 continuously. More developers & testers are wanted to complete this task thank to google guys. The bottom line is Dec 2022.

I will make a new branch (perhaps named manifest-v3) to develop and test v3, and keep a forked v2 branch for guys (including me) to use old chrome versions.

@sinsinpub sinsinpub pinned this issue Dec 3, 2021
sinsinpub added a commit that referenced this issue Dec 3, 2021
* Related to #3174
* Since `runtime.getURL()` supported since chrome 22,
  should be safe to replace all `extension.getURL()` calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant