microsoft / MicrosoftEdge-Extensions

This is a community space for Microsoft Edge Add-ons developers, to share resources and information about building, publishing and growing their Microsoft Edge extension.
MIT License
134 stars 120 forks source link

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

Open lsmith77 opened 2 weeks ago

lsmith77 commented 2 weeks ago

**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

ManikanthMSFT commented 2 weeks ago

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.