From 7fcdb006e6e3dddfd2bf55c595d2596677cc66e9 Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Fri, 28 Apr 2000 13:33:22 +0000 Subject: [PATCH] fix bug #35184; give urlbar focus so that the editor is activated and d&d can work properly git-svn-id: svn://10.0.0.236/trunk@67522 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/browser/resources/content/navigator.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/xpfe/browser/resources/content/navigator.js b/mozilla/xpfe/browser/resources/content/navigator.js index 276e9bb14bf..bfbee8427e0 100644 --- a/mozilla/xpfe/browser/resources/content/navigator.js +++ b/mozilla/xpfe/browser/resources/content/navigator.js @@ -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