Skip to content

[migration] Migrate manifest v2 -> v3 #98

@hydrosquall

Description

@hydrosquall

Motivation

image

This project will stop working in Chrome in 2023 once Manifest v2 support is removed. This error message is currently logged at browser startup time.

Resources

Changing the host permissions part will be straightforward

"permissions": [
      "storage",
      "history",
      "webRequest",
      "webRequestBlocking",
      "contextMenus"
    ],
    "host_permissions": ["http://*/*", "https://*/*", "*://localhost/*", "<all_urls>"],

It may be a more involved process to rewrite the entries in background.scripts as service workers.

https://developer.chrome.com/docs/extensions/mv3/migrating_to_service_workers/

wildcard/manifest.json

Lines 34 to 39 in 156cc98

"background": {
"scripts": [
"dist/wildcard-background.js",
"src/wildcard-ajax.js"
]
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions