diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-10-01 22:06:15 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-10-01 22:06:15 -0400 |
commit | 36fac82035db6eec036ce80c125aaf22202c44a9 (patch) | |
tree | 9fe1c4a8ec5631870a2a4606e5b87c5858776186 /common/modules/finder.jsm | |
parent | 50172175355794a484e3c8487cf5e64db40b0f77 (diff) | |
download | pentadactyl-36fac82035db6eec036ce80c125aaf22202c44a9.tar.gz |
Liberate Buffer from the tyrany of the current window. Add DOM#contextmenu event. Provide sensible screenX/screenY for mouse events.
--HG--
rename : common/content/buffer.js => common/modules/buffer.jsm
Diffstat (limited to 'common/modules/finder.jsm')
-rw-r--r-- | common/modules/finder.jsm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/modules/finder.jsm b/common/modules/finder.jsm index d5922096..a0d88aeb 100644 --- a/common/modules/finder.jsm +++ b/common/modules/finder.jsm @@ -741,8 +741,7 @@ var RangeFind = Class("RangeFind", { this.range = range; this.document = range.startContainer.ownerDocument; this.window = this.document.defaultView; - this.docShell = this.window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) - .QueryInterface(Ci.nsIDocShell); + this.docShell = util.docShell(this.window); if (this.selection == null) return false; |