mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 06:35:46 +01:00
Merge addon-common module loading code to fix Minefield.
--HG-- extra : rebase_source : 6b5f0dc0a575a6d21892e18cbb56ab0230382356
This commit is contained in:
@@ -4,11 +4,10 @@
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
/* use strict */
|
||||
|
||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||
defineModule("protocol", {
|
||||
exports: ["LocaleChannel", "Protocol", "RedirectChannel", "StringChannel", "XMLChannel"],
|
||||
require: ["services", "util"]
|
||||
}, this);
|
||||
});
|
||||
|
||||
var systemPrincipal = Cc["@mozilla.org/systemprincipal;1"].getService(Ci.nsIPrincipal);
|
||||
|
||||
@@ -224,6 +223,7 @@ XMLChannel.prototype = {
|
||||
this.writes.push(services.io.newChannel(url, null, this.uri).open());
|
||||
}
|
||||
catch (e) {
|
||||
util.dump("addChannel('" + url + "'):");
|
||||
util.reportError(e);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user