GUID Question

Talk about add-ons and extension development.
Post Reply
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

GUID Question

Post by RobertJ »

.
Before WebExtentions the xpi had a fairly structured design. One of those files was the install.rdf

That file contained a number of bits of information including the id of the extension and the id(s) of the target Application(s).

In looking at the extensions directory in a profile in FF57 the individual extensions (for the most part) have a file name {id}.xpi

In unpacking various extensions there does not seem to be anything in any of the files that make up the extension which has the id.

So, where does it come from?

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: GUID Question

Post by Brummelchen »

--> about:debugging#addons
maybe random - but same for same computer.
eg
"Add-on List-o-matic 9000"- > {28b9a619-2822-413b-bcb6-4586920bec23}

same for all my profiles (not UUID)
but only chosen when manifest dont contain some id.

when testing extensions here i dont can install or sign without id, firefox rejecting bad manifest.
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: GUID Question

Post by RobertJ »

.
Definitely not random since

{28b9a619-2822-413b-bcb6-4586920bec23} is the id for the "Add-on List-o-matic 9000" extension on my computer (Mac) for FF57.0

I FOUND IT. It is in the mozilla.rsa file in the META-INF directory. I missed it before since that file is largely made up of binary information.

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: GUID Question

Post by Brummelchen »

thank you, then it is inserted when signed.
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: GUID Question

Post by RobertJ »

.
Yes. The UID is the same as it was before in the case of extensions that were ported like NoScript. They also come in two formats, the standard 32 character hex number or a unique email address. These are the ID's for the extensions I currently use:

Code: Select all

add_on_list_o_matic_9000   ----->      {28b9a619-2822-413b-bcb6-4586920bec23}

clippings   ----->                     {91aa5abe-9de4-4347-b7b5-322c38dd9271}

cookie_autodelete   ----->             CookieAutoDelete@kennydo.com

country_flag   ----->                  jid-s7swGsO2vJBPMv@jetpack

empty_cache_button   ----->            {4cc4a13b-94a6-7568-370d-5f9de54a9c7f}

javascript_toggle_on_and_off   ----->  {479f0278-2c34-4365-b9f0-1d328d0f0a40}

measure_it   ----->                    {79b2e4de-8fb4-4ccc-b9f6-362ac2fb74b2}

noscript_security_suite   ----->       {73a6fe31-595d-460b-a920-fcc0f8843232}

ublock_origin   ----->                 uBlock0@raymondhill.net

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: GUID Question

Post by morat »

Interesting. I didn't know the extension id is in the mozilla.rsa file.

There is also the internal uuid. It is randomly created per installation of an extension.

* open about:debugging

Add-on List-o-matic 9000

Extension ID: {28b9a619-2822-413b-bcb6-4586920bec23}
Internal UUID: d6ef2860-f06b-467b-b181-8c6df47ecdce
Manifest URL: moz-extension://d6ef2860-f06b-467b-b181-8c6df47ecdce/manifest.json

WebExtensions UUID can be used as user fingerprint
http://bugzilla.mozilla.org/show_bug.cgi?id=1372288

I like how Chrome uses the same id for unpacked extensions in the same folder. It is the same id even after a hdd format.

Tampermonkey

Extension ID: dhdgffkkebhmkfjojejmpbldmpobfkfo
Manifest URL: chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/manifest.json
Post Reply