Reputation: 5083
I am having trouble migrating my manifest v2 to v3.
Basically, my extension is downloading some files when a specific url pattern is matched.
I've migrated my old manifest to this:
"permissions": [
"webRequest",
"downloads",
"notifications",
"storage"
],
"options_page": "options.html",
"background": {
"service_worker": "background.js"
}
However I still have this error:
Unchecked runtime.lastError: You do not have permission to use blocking webRequest listeners. Be sure to declare the webRequestBlocking permission in your manifest.
But I cannot add webRequestBlocking
because then I get another error telling me v2 is deprecated.
I am using a blocking request listener in my service_worker file:
chrome.webRequest.onBeforeRequest.addListener(
callback, {
urls: ["<all_urls>"],
},["blocking"]);
How would I migrate that to the v3 manifest?
Upvotes: 1
Views: 1173