mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 01:47:59 +01:00
Bump JSMLoader.bump.
This commit is contained in:
4
common/bootstrap.js
vendored
4
common/bootstrap.js
vendored
@@ -202,12 +202,12 @@ function init() {
|
|||||||
for (let [name] in Iterator(JSMLoader.globals))
|
for (let [name] in Iterator(JSMLoader.globals))
|
||||||
Cu.unload(~name.indexOf(":") ? name : "resource://dactyl" + JSMLoader.suffix + "/" + name);
|
Cu.unload(~name.indexOf(":") ? name : "resource://dactyl" + JSMLoader.suffix + "/" + name);
|
||||||
}
|
}
|
||||||
else if (JSMLoader.bump != 5) // Temporary hack
|
else if (JSMLoader.bump != 6) // Temporary hack
|
||||||
Services.scriptloader.loadSubScript("resource://dactyl" + suffix + "/bootstrap.jsm",
|
Services.scriptloader.loadSubScript("resource://dactyl" + suffix + "/bootstrap.jsm",
|
||||||
Cu.import(BOOTSTRAP_JSM, global));
|
Cu.import(BOOTSTRAP_JSM, global));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!JSMLoader || JSMLoader.bump !== 5 || Cu.unload)
|
if (!JSMLoader || JSMLoader.bump !== 6 || Cu.unload)
|
||||||
Cu.import(BOOTSTRAP_JSM, global);
|
Cu.import(BOOTSTRAP_JSM, global);
|
||||||
|
|
||||||
JSMLoader.bootstrap = this;
|
JSMLoader.bootstrap = this;
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ ProtocolBase.prototype = {
|
|||||||
newURI: function newURI(spec, charset, baseURI) {
|
newURI: function newURI(spec, charset, baseURI) {
|
||||||
if (baseURI && baseURI.host === "data")
|
if (baseURI && baseURI.host === "data")
|
||||||
baseURI = null;
|
baseURI = null;
|
||||||
return services.URL(services.URL.URLTYPE_STANDARD,
|
return services.URL(services.URL.URLTYPE_AUTHORITY,
|
||||||
this.defaultPort, spec, charset, baseURI);
|
this.defaultPort, spec, charset, baseURI);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ var Services = Module("Services", {
|
|||||||
this.addClass("Pipe", "@mozilla.org/pipe;1", "nsIPipe", "init");
|
this.addClass("Pipe", "@mozilla.org/pipe;1", "nsIPipe", "init");
|
||||||
this.addClass("Process", "@mozilla.org/process/util;1", "nsIProcess", "init");
|
this.addClass("Process", "@mozilla.org/process/util;1", "nsIProcess", "init");
|
||||||
this.addClass("StreamChannel","@mozilla.org/network/input-stream-channel;1",
|
this.addClass("StreamChannel","@mozilla.org/network/input-stream-channel;1",
|
||||||
["nsIChannel", "nsIInputStreamChannel", "nsIRequest"], "setURI");
|
["nsIInputStreamChannel", "nsIChannel"], "setURI");
|
||||||
this.addClass("StreamCopier", "@mozilla.org/network/async-stream-copier;1","nsIAsyncStreamCopier", "init");
|
this.addClass("StreamCopier", "@mozilla.org/network/async-stream-copier;1","nsIAsyncStreamCopier", "init");
|
||||||
this.addClass("String", "@mozilla.org/supports-string;1", "nsISupportsString", "data");
|
this.addClass("String", "@mozilla.org/supports-string;1", "nsISupportsString", "data");
|
||||||
this.addClass("StringStream", "@mozilla.org/io/string-input-stream;1", "nsIStringInputStream", "data");
|
this.addClass("StringStream", "@mozilla.org/io/string-input-stream;1", "nsIStringInputStream", "data");
|
||||||
|
|||||||
Reference in New Issue
Block a user