mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-01 16:05:45 +01:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user