1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 19:24:12 +01:00

Fix incfind annoyingness on newer Firefoxen.

--HG--
extra : rebase_source : 263fdb4bae4d1facff52ea436141491e5d58a8e5
This commit is contained in:
Kris Maglione
2012-08-10 09:16:08 -04:00
parent 446382604a
commit 0e35c7a288
2 changed files with 4 additions and 2 deletions

View File

@@ -12,7 +12,9 @@ defineModule("finder", {
lazyRequire("buffer", ["Buffer"]);
lazyRequire("overlay", ["overlay"]);
function equals(a, b) XPCNativeWrapper(a) == XPCNativeWrapper(b);
function id(w) w.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
.outerWindowID;
function equals(a, b) id(a) == id(b);
/** @instance rangefinder */
var RangeFinder = Module("rangefinder", {

View File

@@ -364,7 +364,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
}
else if (close) {
stack.pop();
util.assert(stack.length, /*L*/"Unmatched %] in macro");
util.assert(stack.length, /*L*/"Unmatched }> in macro");
}
else {
let [, flags, name] = /^((?:[a-z]-)*)(.*)/.exec(macro);