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

migrate to manifest v3 #2579

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

migrate to manifest v3 #2579

wants to merge 1 commit into from

Conversation

ablanathtanalba
Copy link
Contributor

@ablanathtanalba ablanathtanalba commented Apr 10, 2020

Roadmap to Migrating to Manifest V3

this document will be deleted in a final commit before any changes get merged into master

This is very much a WIP.
It's a task list, a list of relevant resources, and potentially somewhere to bounce ideas about how Privacy Badger could evolve in a post MV3 context.
We know that much of the webRequest API changing to declarativeNetRequest will break core functionality of Privacy Badger. How could Privacy Badger remain a useful and easy-to-use tool with mostly just observational capabilities in the Chrome browser?

Timeline

Links

Tasklist:

in manifest.json:

  • change manifest_version from 2 to 3
  • change permissions into host_permissions
  • change background.scripts into background.service_worker
  • change value in background.service_worker from an array to a string of the relative path to the root service worker
  • change browser_action into action

in the JavaScript:

  • replace all instances of chrome.browserAction with chrome.action
  • replace all instances of chrome.webRequest with chrome.declarativeNetRequest
  • migrate all chrome.extension.getBackgroundPage to other messaging contexts and/or background.service_worker scripts defined in the manifest

@ablanathtanalba ablanathtanalba changed the title added migration tasklist and roadmap doc migrate to manifest v3 Apr 10, 2020
@EFForg EFForg deleted a comment Sep 13, 2020
@ghostwords
Copy link
Member

ghostwords commented Mar 10, 2021

Two big issues I'm aware of (100% there are more that I don't yet know of):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation & specs MV3 Manifest V3-specific issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants