What's the id of Baslisk? Topic is solved

Board for discussions around the Basilisk web browser.
Locked
Sun42

What's the id of Baslisk?

Post by Sun42 » 2017-12-03, 22:30

The legacy install.rdf seems to tell browsers apart by id...

Firefox: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Seamonkey: {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
Basilisk: ???

Thanks.

User avatar
New Tobin Paradigm
Off-Topic Sheriff
Off-Topic Sheriff
Posts: 7348
Joined: 2012-10-09, 19:37
Location: Binary Outcast

Re: What's the id of Baslisk?

Post by New Tobin Paradigm » 2017-12-03, 22:39

Basilisk has inherited Firefox's GUID.. Not like they will have any need for it anymore... Least as far as classical add-ons are concerned. Webextension's don't use the GUID they target "gecko" specifically.
Image
-Better that a hundred probably guilty people die than one of them get a clean shot on me. -
https://binaryoutcast.com/ | Freenode #binaryoutcast | http://thereisonlyxul.org/

Sun42

Re: What's the id of Baslisk?

Post by Sun42 » 2017-12-03, 23:10

New Tobin Paradigm wrote:Basilisk has inherited Firefox's GUID.. Not like they will have any need for it anymore... Least as far as classical add-ons are concerned. Webextension's don't use the GUID they target "gecko" specifically.
So it's impossible to tell Firefox and Basilisk apart? SeaMonkey is identified like this (in Mozilla Archive Format code):

Code: Select all

let isSeaMonkey = Cc["@mozilla.org/xre/app-info;1"]
     .getService(Ci.nsIXULAppInfo).ID == "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}";
Maybe there's some way to check for Gecko/Goanna?

User avatar
New Tobin Paradigm
Off-Topic Sheriff
Off-Topic Sheriff
Posts: 7348
Joined: 2012-10-09, 19:37
Location: Binary Outcast

Re: What's the id of Baslisk?

Post by New Tobin Paradigm » 2017-12-04, 02:09

You could check for the application name using the same service so something like should work:

Code: Select all

let isFirefox = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).ID == "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}";
let isBasilisk = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).name == "Basilisk";

if (isFirefox == true && isBasilisk == true) {
	// Basilisk special case
}
else {
	// Assume Firefox or some other minor rebuild
}
However, I question the reason you need to maintain Firefox compatibility.. Waterfox perhaps? In any event it would also let you weed out the special case when those minor builds fall by the wayside and ESR is out of date.

Hope I have helped!

Peace.
Image
-Better that a hundred probably guilty people die than one of them get a clean shot on me. -
https://binaryoutcast.com/ | Freenode #binaryoutcast | http://thereisonlyxul.org/

Sun42

Re: What's the id of Baslisk?

Post by Sun42 » 2017-12-04, 08:36

New Tobin Paradigm wrote:However, I question the reason you need to maintain Firefox compatibility.. Waterfox perhaps? In any event it would also let you weed out the special case when those minor builds fall by the wayside and ESR is out of date
Thanks for the code and yup: Waterfox (which will keep using "Gecko"). It would be hilarious to fragment the legacy ff community even further and have 3 separate addons for Waterfox, Basilisk and Pale Moon :-o

Locked