*Platform* Good catch... I'm simply using navigator.platform... so those are the available options. Still to be fully implemented in the UI. That's what the database stores, that's what we query.
Ah, ok. Then looks like your options are:
"Win32", "MacPPC", "OS/2", "Photon", "Windows", "BeOS", "?", "X11".
Note that "Windows" and "Win32" are different -- the former is what you will get for 64-bit Windows versions, the latter is what you will get for most Windows installations out there. I don't know whether you want to differentiate between the two in the UI; chances are you don't. But you should search both.
Also note that all unices get lumped under "X11" so you can't tell Linux apart from others... depending on the goals, you may want to look at navigator.oscpu and pull out the part before the space or something for the X11 case. If you do that for other cases you'll actually get listings of the exact Windows version and so forth, which is definitely undesirable.
*about:buildconfig* I like the idea, how can we access the info easily?
Open a sync channel on chrome://global/content/buildconfig.html, use DOMParser to parse the stream, then pull out the data from the DOM, is likely to be the easiest way...
Something like:
var ioservice =
Components.classes["@mozilla.org/network/io-service;1"].
getService(Components.interfaces.nsIIOService);
var channel = ioservice.newChannel("chrome://global/content/buildconfig.html",
null, null);
var stream = channel.open();
var parser = new DOMParser();
var doc = parser.parseFromStream(stream, "UTF-8", stream.available(),
"application/xhtml+xml");Now "doc" is a DOMDocument with the DOM for that page... Note that the page is not actually XHTML, but it looks well-formed and such, so this ought to work. The lastChild of the document.getElementsByTagName("body").item(0) should be the textNode with the configure arguments in it.
This tool, like talkback, can capture pristine data. Absolutely unharmed, mangled, or molested. I think we need to think carefully before giving users options to edit, or ask them questions. Each time we do, we lower our accuracy in search queries.
Fully agreed.
-Boris _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
