privacybadger icon indicating copy to clipboard operation
privacybadger copied to clipboard

migrate to manifest v3

Open ablanathtanalba opened this issue 5 years ago • 1 comments

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
  • [x] migrate all chrome.extension.getBackgroundPage to other messaging contexts and/or background.service_worker scripts defined in the manifest

ablanathtanalba avatar Apr 10 '20 02:04 ablanathtanalba

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

ghostwords avatar Mar 10 '21 20:03 ghostwords