I know that the ID field is not mandatory under manifest v2, and Firefox generates a unique GUID for each XPI with no ID when one's downloaded directly from the Addons Store or installed manually.
For testing, I created a new profile, installed the downloaded XPI manually and checked the created GUID - it matches the one installed on a different profile. So, I assume the GUID generation algorithm is stably based on a certain parameter of the XPI in question, e.g. file's hash value or size, I don't know.
- That said, can I generate GUIDs for non-IDed extensions programmatically with tools like e.g. uuidgen (Linux)? Is it a viable option at all?
- If not, what's the recommended way of installing such XPIs with a bash script (without user interaction and manual install)?
Thank you!
Victor