mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 20:47:58 +01:00
Fix buffer.(getCurrentWord|followDocumentRelationship). Thanks anekos and dhahler.
This commit is contained in:
@@ -233,6 +233,20 @@ const Util = Module("util", {
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the selection controller for the given window.
|
||||
*
|
||||
* @param {Window} window
|
||||
* @returns {nsISelectionController}
|
||||
*/
|
||||
selectionController: function (win)
|
||||
win.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIWebNavigation)
|
||||
.QueryInterface(Ci.nsIDocShell)
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsISelectionDisplay)
|
||||
.QueryInterface(Ci.nsISelectionController),
|
||||
|
||||
/**
|
||||
* Split a string on literal occurrences of a marker.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user