MicrosoftEdge-Extensions
MicrosoftEdge-Extensions copied to clipboard
[Feature Request - Partner Center] WebExtension with `background.scripts` and `key`
Describe the bug
Microsoft Partner Center refuses to publish an extension with the background.scripts and key property in manifest V3.
I tried to publish my Cast Kodi extension which has two backgrounds specified in the manifest:
{
"manifest_version": 3,
"name": "Cast Kodi",
"...": "...",
"background": {
"service_worker": "background.js",
"scripts": ["background.js"],
"type": "module"
},
"...": "...",
"key": "MIIBIjANBg..."
}
Thanks to the Proposal: declaring background scripts in a neutral way w3c/webextensions#282 issue, I can use the same manifest for Chromium and Firefox.
- Firefox Browser Add-ons accepts manifest with
background.service_workerandkey. - Chrome Web Store accepts manifest with
background.scripts.
To Reproduce Steps to reproduce the behavior:
- Go to Microsoft Partner Center > Edge
- Publish an extension with the
background.scriptsandkeyproperty in manifest V3. - See error
The following checks failed:
- Package acceptance validation error: The background.scripts field cannot be used with manifest version 3. Use the background.service_worker field instead. Error code: background: { "service_worker": "background.js", "scripts": [ "background.js" ], "type": "module" } Line: 30 Column: 17
- Package acceptance validation error: The manifest shouldn't contain the key field.
Expected behavior
Microsoft Partner Center accepts extension with the background.scripts and key property in manifest V3.
Desktop (please complete the following information):
- OS: Ubuntu 22.04.3 LTS
- Browser: Firefox
- Version: 122.0.1
Additional context
- https://github.com/w3c/webextensions/issues/282
- https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background#browser_support
- https://issues.chromium.org/issues/40257904 Move from a hard-error to warning when loading extensions with the
background.scriptskey present
Related issues
- https://github.com/microsoft/MicrosoftEdge-Extensions/issues/165
- https://github.com/microsoft/MicrosoftEdge-Extensions/issues/172
Hey @regseb , thank you for bringing this up. We'll take it up with the right team.
Can confirm this still is an issue today in Microsoft Partner Center giving the following error:
Package acceptance validation error: The background.page field cannot be used with manifest version 3. Use the background.service_worker field instead. Error code: background: { "service_worker": "/background.js", "page": "/views/background.html", "preferred_environment": [ "document", "service_worker" ] } Line: 1 Column: 2425
https://github.com/microsoft/MicrosoftEdge-Extensions/issues/165 and https://github.com/microsoft/MicrosoftEdge-Extensions/issues/172 seem to be a duplicate of this issue. Would make sense to track progress in a single issue.
@ManikanthMSFT can this be prioritised?
Hi @carlosjeurissen, we wanted to inform you that the feature you inquired about is currently on our backlog. We will update you once we have an update on this feature.
We appreciate your understanding and patience.