fix bug #35184; give urlbar focus so that the editor is activated and d&d can work properly

This commit is contained in:
brade%netscape.com 2006-09-14 05:49:32 +00:00
parent 7bd51fd41b
commit 8ce9bc2bb8

View File

@ -322,6 +322,11 @@ function Startup()
// Initialize browser instance..
appCore.setWebShellWindow(window);
// give urlbar focus so it'll be an active editor and d&d will work properly
var url_bar = document.getElementById("urlbar");
if ( url_bar )
url_bar.focus();
tryToSetContentWindow();
// Add a capturing event listener to the content area