From 89c9103a3452ecae250582bc0f572924610c339e Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Sat, 18 Feb 2006 00:13:53 +0000 Subject: [PATCH] Bug 306358, fix drag and drop onto the search bar, r=mano --- browser/components/search/content/search.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/browser/components/search/content/search.xml b/browser/components/search/content/search.xml index ec71f7541122..fa68473aa7c0 100644 --- a/browser/components/search/content/search.xml +++ b/browser/components/search/content/search.xml @@ -320,6 +320,7 @@ // overload |onTextEntered| in autocomplete.xml + @@ -431,9 +433,8 @@ var data = transferUtils.retrieveURLFromData(aXferData.data, aXferData.flavour.contentType); if (data) { - // XXXBlake Workaround caret crash when you try to set the - // textbox's value on dropping - setTimeout(function(This, data, evt) { This.value = data; This.onTextEntered(evt); }, 0, this.mOuter, data, aEvent); + this.mOuter.value = data; + this.mOuter.onTextEntered(aEvent); } },