From e0397612a9fd09059f2c6fe891bc97363ff3af79 Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Thu, 14 Sep 2006 05:59:21 +0000 Subject: [PATCH] Bug 91884: postpone focus() calls from browser onload till after the window is shown. r=jrgm, sr=hyatt git-svn-id: svn://10.0.0.236/trunk@210865 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/browser/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/suite/browser/navigator.js b/mozilla/suite/browser/navigator.js index d40698d7a0d..964fe9be387 100644 --- a/mozilla/suite/browser/navigator.js +++ b/mozilla/suite/browser/navigator.js @@ -336,9 +336,9 @@ function Startup() // Focus the content area if the caller instructed us to. if ("arguments" in window && window.arguments.length >= 3 && window.arguments[2] == true || !window.locationbar.visible) - _content.focus(); + setTimeout("_content.focus();", 0); // XXXjag bug 91884 else - gURLBar.focus(); + setTimeout("gURLBar.focus();", 0); // XXXjag bug 91884 // Perform default browser checking. checkForDefaultBrowser();