Update an extension. When ! is given, update all
diff --git a/common/modules/services.jsm b/common/modules/services.jsm
index d9d4ad91..8c30b004 100644
--- a/common/modules/services.jsm
+++ b/common/modules/services.jsm
@@ -36,7 +36,7 @@ var Services = Module("Services", {
this.add("extensionManager", "@mozilla.org/extensions/manager;1", Ci.nsIExtensionManager);
this.add("favicon", "@mozilla.org/browser/favicon-service;1", Ci.nsIFaviconService);
this.add("focus", "@mozilla.org/focus-manager;1", Ci.nsIFocusManager);
- this.add("fuel", "@mozilla.org/fuel/application;1", Ci.fuelIApplication);
+ this.add("fuel", "@mozilla.org/fuel/application;1", Ci.extIApplication);
this.add("history", "@mozilla.org/browser/global-history;2", [Ci.nsIBrowserHistory, Ci.nsIGlobalHistory3,
Ci.nsINavHistoryService, Ci.nsPIPlacesDatabase]);
this.add("io", "@mozilla.org/network/io-service;1", Ci.nsIIOService);
diff --git a/common/modules/util.jsm b/common/modules/util.jsm
index c588df6d..a5547713 100644
--- a/common/modules/util.jsm
+++ b/common/modules/util.jsm
@@ -1187,7 +1187,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
getSource: function regexp_getSource(re) re.source.replace(/\\(.)/g, function (m0, m1) m1 === "/" ? "/" : m0)
}),
- rehash: function () {
+ rehash: function (args) {
+ if (services.fuel)
+ services.fuel.storage.set("dactyl.commandlineArgs", args);
this.timeout(function () {
this.rehashing = true;
this.addon.userDisabled = true;
@@ -1443,6 +1445,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
*/
xmlToDom: function xmlToDom(node, doc, nodes) {
XML.prettyPrinting = false;
+ if (typeof node === "string") // Sandboxes can't currently pass us XML objects.
+ node = XML(node);
if (node.length() != 1) {
let domnode = doc.createDocumentFragment();
for each (let child in node)
diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS
index 6d42bd9b..1bc353fa 100644
--- a/pentadactyl/NEWS
+++ b/pentadactyl/NEWS
@@ -64,7 +64,7 @@
* :extadd now supports remote URLs as well as local files on Firefox 4.
* Added :if/:elseif/:else/:endif conditionals.
- Added -keyword, -tags, -title to :delbmarks.
- - Added :extupdate command.
+ - Added :extrehash, :exttoggle, :extupdate, and :rehash commands.
- Added :feedkeys command.
- Added -sort option to :history.
- Added several new options, including -javascript, to :abbrev and :map.