rem: window.openDialog("chrome:    /* var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rdfs.GetResource("urn:mozilla:item:{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}"); alert(extension.Value); */ 
add: if (geckoVersionCompare("1.8") <= 0) {  extension_id = "urn:mozilla:item:{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}"; window.openDialog("chrome: } else {  extension_id = "urn:mozilla:extension:{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}"; window.openDialog("chrome: } 
context: function torbutton_open_about_dialog() {    var extensionManager = Components.classes["@mozilla.org/extensions/manager;1"]                           .getService(Components.interfaces.nsIExtensionManager);    var database = '@mozilla.org/rdf/datasource;1?name=composite-datasource';    database = Components.classes[database]               .getService(Components.interfaces.nsIRDFCompositeDataSource);    database.AddDataSource(extensionManager.datasource);    window.openDialog("chrome://mozapps/content/extensions/about.xul","","chrome,modal","urn:mozilla:item:{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}",database);// or we could just extract the version the way that about.js and about.xul do it// (the below is incomplete)/*  var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"]                       .getService(Components.interfaces.nsIRDFService);  var extension = rdfs.GetResource("urn:mozilla:item:{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}");   alert(extension.Value);*/}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/7c6f66cd16dd8b100fef9bad502b0a3751ece052/torbutton.js/buggy/src/chrome/content/torbutton.js