Bug 385062 - "Search field in bookmarks sidebar gets the focus when opening a new window" [p=asqueella@gmail.com (Nickolay Ponomarev) r=gavin a=blocking-firefox3+]

This commit is contained in:
reed@reedloden.com 2008-03-12 15:49:59 -07:00
Родитель 33760feb26
Коммит f1c28919c9
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -4555,7 +4555,10 @@ function sidebarOnLoad(event) {
/**
* Fire a "SidebarFocused" event on the sidebar's |window| to give the sidebar
* a chance to adjust focus as needed. */
* a chance to adjust focus as needed. An additional event is needed, because
* we don't want to focus the sidebar when it's opened on startup or in a new
* window, only when the user opens the sidebar.
*/
function fireSidebarFocusedEvent() {
var sidebar = document.getElementById("sidebar");
var event = document.createEvent("Events");