From f1c28919c9a58747023d77a13aec303af471b177 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 12 Mar 2008 15:49:59 -0700 Subject: [PATCH] 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+] --- browser/base/content/browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index ce1e14f47df..4eaaf444b86 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -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");