From 49da7fca3a84e501a6d751c560e07eff2d0e92a5 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 11 Jul 2009 15:52:24 +1000 Subject: [PATCH] Fix 'focuscontent' error. --- common/content/events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 08ac4902..66250c23 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -551,14 +551,14 @@ function Events() //{{{ if (doc == getBrowser().contentDocument) { // we want to stay in command mode after a page has loaded - // TODO: move somehwere else, as focusing can already happen earlier than on "load" + // TODO: move somewhere else, as focusing can already happen earlier than on "load" if (options["focuscontent"]) { setTimeout(function () { let focused = liberator.focus; - if (focused && (focused.value !== undefined) && focused.value.length == 0) + if (focused && (focused.value != null) && focused.value.length == 0) focused.blur(); - }, 100); + }, 0); } } else // background tab