1
0
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:
Kris Maglione
2010-05-07 02:27:42 +09:00
parent 620e6a73a5
commit 0c6a7b178f
2 changed files with 41 additions and 16 deletions

View File

@@ -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.
*