MicrosoftEdge-Extensions icon indicating copy to clipboard operation
MicrosoftEdge-Extensions copied to clipboard

[FeatureReq - Partner Center] Enable cross-browser V3 manifests

Open lsmith77 opened this issue 1 year ago • 3 comments

**Is your feature request related to a problem?

We encountered this warning: 340078623-1fdaae31-190e-450a-ad3f-b62518e2f264

The issue is that we want to be able to use the same manifest for Firefox, which has different requirements. So from our point of view the validation in the Microsoft Edge store is too strict. Note that the Chrome store doesn't do such strict validation either.

Firefox still uses "scripts" https://stackoverflow.com/questions/75043889/manifest-v3-background-scripts-service-worker-on-firefox/78088358#78088358

Hence we changed our manifest from

  "background": {
    "service_worker": "js/background.bundle.js",
    "type": "module"
  },

To

  "background": {
    "service_worker": "js/background.bundle.js",
    "scripts": ["js/background.bundle.js"],
    "type": "module"
  },

to still support Firefox after the v3 migration.

Describe the solution you'd like Ignore scripts in background if service_worker is present and pointing to the first element in a single element array in scripts

Describe alternatives you've considered Ignore scripts in background

Additional context

lsmith77 avatar Jun 20 '24 09:06 lsmith77

Hi @lsmith77, thank you for suggestion. We have forwarded your feedback and the proposed solution to our engineering team. They are currently reviewing it.

We understand the importance of this issue and once we have an update or need further information, we will get back to you promptly. We appreciate your contribution to improving the platform.

ManikanthMSFT avatar Jun 20 '24 12:06 ManikanthMSFT

This is not specifically an Edge issue. Mozilla and Chrome don't seem to have agreed on the specific syntax, which as you pointed out, is different for both browsers. Edge is based on Chromium and will expect the Chrome syntax.

You will have to have 2 manifest.json file and build separate packages for Mozilla vs Chome/Edge.

FMaz008 avatar Feb 06 '25 22:02 FMaz008

Mozilla and Chrome don't seem to have agreed on the specific syntax

No, they did, as of versions 121:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background#browser_support

More info/links in #172

ghostwords avatar Feb 07 '25 01:02 ghostwords

Hi @lsmith77 @FMaz008 @ghostwords

I am Rahul from the Microsoft Edge Extensions Developer Support team.

This feature request aligns with item https://github.com/microsoft/MicrosoftEdge-Extensions/issues/136, so I’m closing this as a duplicate. All future updates related to this feature will be tracked under https://github.com/microsoft/MicrosoftEdge-Extensions/issues/136. Thank you for your understanding.

Rahul-Bauri avatar Aug 11 '25 05:08 Rahul-Bauri