Skip to content

Clarify extension ID creation - #38444

Merged
rebloor merged 13 commits into
mdn:mainfrom
andrewbaxter:main
Jan 6, 2026
Merged

rebloor merged 13 commits into
mdn:mainfrom
andrewbaxter:main

Conversation

@andrewbaxter

Copy link
Copy Markdown
Contributor

Description

For manifest V3, the developer must come up with an ID on their own to submit the extension. I clarified it (I think in the best location) and provided details on the requirements and how to to choose one.

Motivation

AFAICT nowhere in the docs did it say that the developer can come up with the extension ID on their own, and in several places it's suggested that they don't come up with it on their own (ex: testing locally, uploading manifest V2 extensions with no ID).

This confused me for several hours until I joined the addons web chat and got an answer from someone official.

Additional details

Related issues and pull requests

AFAICT nowhere in the docs did it say that the developer can come up with the extension ID on their own, and in several places it's suggested that they _don't_ come up with it on their own (ex: testing locally, uploading manifest V2 extensions with no ID).

For manifest V3, the developer _must_ come up with an ID on their own to submit the extension. I clarified it (I think in the best location) and provided details on the requirements and how to to choose one.
@andrewbaxter
andrewbaxter requested review from a team and willdurand and removed request for a team March 4, 2025 14:19
@github-actions github-actions Bot added Content:WebExt WebExtensions docs size/xs [PR only] 0-5 LoC changed labels Mar 4, 2025
@andrewbaxter

Copy link
Copy Markdown
Contributor Author

I made a similar change for documents in extension workshop since there are different routes in the documentation: mozilla/extension-workshop#2022

A lot of documents are still heavily V2-oriented... I have no strong preference for V3 but I didn't want to have to make large changes to distribute an extension on multiple extension marketplaces, in case this is because V3 extensions aren't officially recommended.

@github-actions github-actions Bot added size/m [PR only] 51-500 LoC changed and removed size/xs [PR only] 0-5 LoC changed labels Mar 9, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Mar 9, 2025 •

Copy link
Copy Markdown
Contributor

@rebloor

rebloor commented Mar 9, 2025

Copy link
Copy Markdown
Contributor

@andrewbaxter thanks for spotting this. I've made some additional changes as I'm not sure, for example, that the original statement that the key was usually not required was neither accurate or helpful.

@andrewbaxter

andrewbaxter commented Mar 10, 2025 •

Copy link
Copy Markdown
Contributor Author

Thanks! I agree, and your changes seem great - I was afraid to make sweeping changes but I think this is much better.

Would it be possible to clarify that the id is something the developer chooses, and not something assigned by ADO? That was the other thing that confused me, and since there are situations where the developer doesn't choose the id (local testing, manifest v2) it wasn't obvious to me in v3 that the roles had switched.

@rebloor

rebloor commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

@andrewbaxter better?

@andrewbaxter

andrewbaxter commented Mar 11, 2025 •

Copy link
Copy Markdown
Contributor Author

Oh thanks! And sorry for my insistance here!

I think the new wording doesn't explicitly say that the developer chooses the ID. It makes it clear that AMO does not, but leaves a gap in identifying who does.

If you don't have any objection, I think it would be good to say something like, "In manifest V3, the developer chooses the ID." or something similarly direct.

Edit: Rereading it I think what you wrote works, I think my only hesitation is that provide can and often means "via some external system". Like if a bank says "provide your social security number", they don't mean "make up a number". I have a similar reservation about the word "define" and was why I went with "decide" originally which I think is unambiguous (same with "choose"), but I think if someone reads this carefully they'll get the intended meaning.

@github-actions github-actions Bot added the merge conflicts 🚧 [PR only] label Apr 3, 2025
@github-actions

github-actions Bot commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@willdurand

Copy link
Copy Markdown
Member

I made a similar change for documents in extension workshop since there are different routes in the documentation: mozilla/extension-workshop#2022

let's align on this first

@github-actions github-actions Bot removed the merge conflicts 🚧 [PR only] label Apr 30, 2025
@rebloor

rebloor commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

@andrewbaxter any objections to merging?

@andrewbaxter

andrewbaxter commented May 5, 2025 •

Copy link
Copy Markdown
Contributor Author

Oh hey, sorry - I think the current state of this MR is fairly far from what I started with and I'm not on top of all of the discussions, so it might be better if you reach a conclusion with @willdurand

I think it'd be fine to merge whatever you two agree on.

@rebloor

rebloor commented May 6, 2025

Copy link
Copy Markdown
Contributor

Thanks @andrewbaxter
Any further comment @willdurand

@willdurand

Copy link
Copy Markdown
Member

@rebloor it's kind of OK. I guess I'll insist on recommending to always set an ID in the manifest no matter the manifest version, and also indicate that the important part in "email-like form" is "like", which means the developer doesn't necessarily have to own the email address because it is actually not necessarily an email address. The rest looks very reasonable. Since I am guessing I'll make the same comments in the EW PR, I'm wondering if this page should point to EW for the specifics, and do not try to explain what values are accepted, etc. idk

@rebloor

rebloor commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

@willdurand I've made some updates along the lines of your feedback. Regarding. "I'm wondering if this page should point to EW for the specifics, and do not try to explain what values are accepted, etc. idk" as the information is relatively simple and unlikely to change, I'm disinclined to make the reader follow a link to get this information.

@bsmth
bsmth requested review from willdurand and removed request for willdurand July 10, 2025 10:47
@github-actions github-actions Bot added the merge conflicts 🚧 [PR only] label Aug 8, 2025
@github-actions

github-actions Bot commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions Bot added size/s [PR only] 6-50 LoC changed and removed merge conflicts 🚧 [PR only] size/m [PR only] 51-500 LoC changed labels Aug 8, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions Bot added the merge conflicts 🚧 [PR only] label Nov 4, 2025
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@willdurand
willdurand removed their request for review November 6, 2025 09:39
@rebloor
rebloor requested a review from a team as a code owner January 4, 2026 17:54
@rebloor
rebloor requested review from willdurand and removed request for a team January 4, 2026 17:54
@github-actions github-actions Bot removed the merge conflicts 🚧 [PR only] label Jan 4, 2026
@rebloor
rebloor requested a review from Rob--W January 4, 2026 18:06
@rebloor

rebloor commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

@willdurand as a number of changes in this PR are mine are you be happy to provide approval?

@Rob--W Rob--W left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content looks accurate. I however wonder whether MDN is the right place for this detail. We can figure out the desired location for the information after merging though.


- `id`
- : The extension ID. When provided, this property must contain 80 characters or less. See [Extensions and the Add-on ID](https://extensionworkshop.com/documentation/develop/extensions-and-the-add-on-id/) to determine when to specify the ID.
- : The extension ID. Optional for Manifest V2 (although setting an ID is recommended) and required for signing Manifest V3 extensions. If you don't provide a value for Manifest V2 extensions, AMO assigns a GUID to the extension when it is signed. You must create an ID for signing Manifest V3 extensions; AMO does not assign an ID. When provided, this property must be a:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- : The extension ID. Optional for Manifest V2 (although setting an ID is recommended) and required for signing Manifest V3 extensions. If you don't provide a value for Manifest V2 extensions, AMO assigns a GUID to the extension when it is signed. You must create an ID for signing Manifest V3 extensions; AMO does not assign an ID. When provided, this property must be a:
- : The extension ID. Optional for Manifest V2 (although setting an ID is recommended) and required for signing Manifest V3 extensions. If you don't provide a value for Manifest V2 extensions, AMO assigns a GUID to the extension when it is signed. When provided, this property must be a:

Optional suggestion to drop note that is already implied by the fact that the field is required for MV3.

@willdurand
willdurand removed their request for review January 6, 2026 09:52
@rebloor
rebloor merged commit 6c8f4ad into mdn:main Jan 6, 2026
@rebloor

rebloor commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

@Rob--We do also cover this on Extension Workshop. However, I think the challenge here is that, because this is a Firefox only feature, the expectation is that the documentation would be complete in this location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebExt WebExtensions docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants