1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:57:59 +01:00

Fix odd "gi" corner case.

This commit is contained in:
Kris Maglione
2010-12-20 17:03:35 -05:00
parent 11d938f0b8
commit bc9e8794e5

View File

@@ -381,7 +381,10 @@ const Buffer = Module("buffer", {
* @property {Node} The last focused input field in the buffer. Used
* by the "gi" key binding.
*/
get lastInputField() this.localStore.lastInputField && this.localStore.lastInputField.get() || null,
get lastInputField() {
let field = this.localStore.lastInputField && this.localStore.lastInputField.get();
return field && field.ownerDocument == field.ownerDocument.defaultView.document ? field : null;
},
set lastInputField(value) { this.localStore.lastInputField = value && Cu.getWeakReference(value); },
/**