MozillaZine

GUID Question

Talk about add-ons and extension development.
RobertJ
Moderator

User avatar
 
Posts: 10387
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted November 29th, 2017, 10:28 am

.
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 57.0.4 - FF 58b16 - Palemoon 27.6.2 - TB 52.5.2 - Mac OSX 10.13.2
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

Brummelchen
 
Posts: 2852
Joined: March 19th, 2005, 10:51 am

Post Posted November 29th, 2017, 1:55 pm

--> 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.

RobertJ
Moderator

User avatar
 
Posts: 10387
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted November 29th, 2017, 2:12 pm

.
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 57.0.4 - FF 58b16 - Palemoon 27.6.2 - TB 52.5.2 - Mac OSX 10.13.2
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

Brummelchen
 
Posts: 2852
Joined: March 19th, 2005, 10:51 am

Post Posted November 29th, 2017, 3:28 pm

thank you, then it is inserted when signed.

RobertJ
Moderator

User avatar
 
Posts: 10387
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Post Posted November 30th, 2017, 6:38 am

.
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 57.0.4 - FF 58b16 - Palemoon 27.6.2 - TB 52.5.2 - Mac OSX 10.13.2
Computers I've used: IBM 7094/UNIVAC 1108/IBM 360/DEC PDP11/DEC VAX-11 780/DEC VAXstation 8000/Sun SPARCstation 2/Mac from 1984 to 2018

morat
 
Posts: 2530
Joined: February 3rd, 2009, 6:29 pm

Post Posted November 30th, 2017, 8:10 am

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

Return to Extension Development


Who is online

Users browsing this forum: Google [Bot] and 1 guest