1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 02:15:45 +01:00

Fix startup on FF36 with a few minutes grace before the nightly goes out.

--HG--
extra : rebase_source : 0685da18b901ff6f243e60e9216dbdc40a4a9455
This commit is contained in:
Kris Maglione
2011-01-11 18:57:22 -05:00
parent 7b719449a3
commit 4b33fc5c9f
4 changed files with 10 additions and 9 deletions

View File

@@ -279,10 +279,10 @@ function deprecated(reason, fn) {
obj + (fn.name || name) + " is deprecated: " + reason);
return func.apply(this, arguments);
}
deprecatedMethod.seen = {
"resource://dactyl/javascript.jsm": true,
"resource://dactyl/util.jsm": true
};
memoize(deprecatedMethod, "seen", function () set([
"resource://dactyl" + JSMLoader.suffix + "/javascript.jsm",
"resource://dactyl" + JSMLoader.suffix + "/util.jsm"
]));
return callable(fn) ? deprecatedMethod : Class.Property({
get: function () deprecatedMethod,

View File

@@ -86,4 +86,4 @@ Components.classes["@mozilla.org/fuel/application;1"]
JSMLoader.load("base.jsm", this);
dump("exports: " + this.JSMLoader+" " +this.EXPORTED_SYMBOLS + "\n");
}catch(e){dump(e+"\n"+e.stack);Components.utils.reportError(e)}
}catch(e){dump(e+"\n"+(e.stack || Error().stack));Components.utils.reportError(e)}

View File

@@ -167,7 +167,7 @@ var Services = Module("Services", {
try {
let res = Cc[classes][meth || "getService"]();
if (!ifaces)
return res.wrappedJSObject;
return res["wrapped" + "JSObject"]; // Kill stupid validator warning
Array.concat(ifaces).forEach(function (iface) res.QueryInterface(iface));
if (init && args.length) {
try {