mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
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:
parent
60e92a7d01
commit
546d181eb2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user