Fix some cases where the caret could be blinking in the URL bar but focus is actually elsewhere. Bug 89214, r=jkeiser, sr=jst.

This commit is contained in:
bryner%netscape.com 2006-09-14 06:07:35 +00:00
parent 60e92a7d01
commit 546d181eb2

View File

@ -645,10 +645,10 @@ function WindowFocusTimerCallback(element)
} else {
// set the element in command dispatcher so focus will restore properly
// when the window does become active
document.commandDispatcher.focusedWindow = window;
if (element instanceof Components.interfaces.nsIDOMElement)
document.commandDispatcher.focusedElement = element;
else if (element instanceof Components.interfaces.nsIDOMWindow)
document.commandDispatcher.focusedWindow = element;
}
}