In Porting a legacy Firefox extension, the document says this about the ID:
Copy the value in the “id” field from your package.json file into the id field in the applications section of the WebExtension manifest.json file.
Our legacy extension used a GUID for the “id” field, but using that in the manifest.json file doesn’t seem to work. For example:
"applications": {
"gecko": {
"id": "{123e4567-e89b-12d3-a456-426655440000}",
"strict_min_version": "50.0",
"update_url": "https://example.com/updates.json"
}
}
Loading the WebExtension for testing using Load Temporary Add-on produces this error:
There was an error during installation: Add-on {123e4567-e89b-12d3-a456-426655440000} is not compatible with application version.
Using an email style id (e.g., addon@example.com) seems to work just fine – but of course it won’t match the id used for the legacy extension.
Is there any way to get the GUID style id to work with WebExtensions?
A couple of side notes:
- the quote above mentions a “package.json” file – at least in our case, the legacy file with the id is actually “install.rdf”
- it’s not clear which id from the install.rdf file should be copied over, the em:id directly under the top level Description or the em:id under targetApplication…