1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 22:05:46 +01:00
This commit is contained in:
Kris Maglione
2010-11-09 17:37:51 -05:00
parent 37057099f7
commit 21e677346d

View File

@@ -382,9 +382,14 @@ const Editor = Module("editor", {
if (elem instanceof Element) if (elem instanceof Element)
return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor; return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor;
return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation) try {
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession) return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation)
.getEditorForWindow(elem); .QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession)
.getEditorForWindow(elem);
}
catch (e) {
return null;
}
}, },
getController: function () { getController: function () {