mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-25 10:55:46 +01:00
Handle sane shells on Windows somewhat better.
This commit is contained in:
@@ -594,8 +594,7 @@ const 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)
|
||||
this.docShell = this.window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation)
|
||||
.QueryInterface(Ci.nsIDocShell);
|
||||
|
||||
if (this.selection == null)
|
||||
@@ -629,8 +628,7 @@ const RangeFind = Class("RangeFind", {
|
||||
},
|
||||
|
||||
get selectionController() this.docShell
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsISelectionDisplay)
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsISelectionDisplay)
|
||||
.QueryInterface(Ci.nsISelectionController),
|
||||
get selection() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user