[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r10257: [darcs-to-svn @ let firefox generate our about box for us] O (torbutton/trunk/src/chrome/content)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r10257: [darcs-to-svn @ let firefox generate our about box for us] O (torbutton/trunk/src/chrome/content)
- From: squires@xxxxxxxx
- Date: Tue, 22 May 2007 01:23:57 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 22 May 2007 01:24:06 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: squires
Date: 2007-05-22 01:23:55 -0400 (Tue, 22 May 2007)
New Revision: 10257
Modified:
torbutton/trunk/src/chrome/content/torbutton.js
Log:
[darcs-to-svn @ let firefox generate our about box for us]
Original author: squires@xxxxxxxxx
Date: 2006-06-02 03:51:04+00:00
Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js 2007-05-22 05:23:50 UTC (rev 10256)
+++ torbutton/trunk/src/chrome/content/torbutton.js 2007-05-22 05:23:55 UTC (rev 10257)
@@ -370,7 +370,23 @@
}
function torbutton_open_about_dialog() {
- window.openDialog("chrome://torbutton/content/about.xul","torbutton-about","cneterscreen, chrome");
+ 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);
+*/
}
function torbutton_log(nLevel, sMsg) {