Skip to content

Migrate to Manifest V3 #2

Description

@morkonda

Chrome will soon require extensions to use the V3 extensions APIs. This will require migrating the code from V2.

  • Although this extension doesn't need blocking requests, some newer APIs might be better instead of using webRequest

Initial V3 manifest version to get started:

{
  "name": "SSO privacy extension",
  "description": "A privacy extension that shows data requested with SSO logins.",
  "version": "1.0",
  "manifest_version": 3,
  "background": {
    "service_worker": "src/js/background.js"
  },
  "action": {
    "default_popup": "src/popup.html#popup"
  },
  "host_permissions": [
    "http://*/*",
    "https://*/*"
  ],
  "permissions": [
    "webRequest"
  ],
  "content_scripts": [
      {
        "matches": [
          "http://*/*",
          "https://*/*"
        ],
        "css": ["src/css/permissions.css"],
        "js": [
          "src/js/identity-providers.js",
          "src/js/permissions.js",
          "src/js/contentscript.js"
        ],
        "run_at": "document_idle"
      }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions