Honza
navigator.oscpu (nsIDOMNavigator if you want explicit xpcom stuff, or
nsIHttpHandler.oscpu, but I'm not sure that's necessarily easier for you to get to)
See
http://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/src/nsHttpHandler.cpp#650
for what it does / what you should be dealing with.
The navigator implementation accesses this via
http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#9438
in case you care.
~ Gijs
In addition to what Gijs suggested,
Components.classes["@mozilla.org/system-info;1"]
.getService(Components.interfaces.nsIPropertyBag)
.getProperty("version");
Used in such wonderful places as
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/src/nsBlocklistService.js#118
I don't know of documentation, though, just nsSystemInfo.cpp :(
--
Mook
Works for me.
Honza