feat: Add warning for missing Firefox extension ID in manifest#2293
feat: Add warning for missing Firefox extension ID in manifest#2293Sbrjt wants to merge 4 commits intowxt-dev:mainfrom
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@wxt-dev/is-background
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/runner
@wxt-dev/storage
@wxt-dev/unocss
@wxt-dev/webextension-polyfill
wxt
commit: |
|
Do you think we can add some default like |
This would be terrible, as it would clobber extension settings without the user knowing it. Additionally, this field is not required for development, only for installing/signing/publishing. It is also publicity visible and permanent once published. It can never be changed without deleting the extension and publishing an new one. I would prefer publishing to fail if I have not set my permanent, public, extension ID yet, so that I can set a proper ID; vs having a random one published. You can easily define browser specific settings in the config ...(isFirefox
? {
browser_specific_settings: {
gecko: {
id: 'auto-auth@cssnr.com',
strict_min_version: '128.0', // webRequest.onAuthRequired asyncBlocking
data_collection_permissions: { required: ['none'] },
},
gecko_android: { strict_min_version: '128.0' }, // webRequest.onAuthRequired asyncBlocking
},
}
: { minimum_chrome_version: '127' }), // chrome.action.openPopupBut I support a warning. |
|
@smashedr Good catch, in that case we shouldn't add any default data. Let's leave only warn |
Co-authored-by: Copilot <copilot@github.com>
Overview
This PR adds a warning when the Firefox extension ID is missing from the manifest to help prevent invalid builds.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings#description
Manual Testing
Not sure
Related Issue
None