From 6c020a3ef61b7d5d6daa9d62f830b4f14175147d Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Thu, 11 May 2006 20:40:15 +0000 Subject: [PATCH] Bug 336625: text remains grey when dragged to the search bar, r=jhughes git-svn-id: svn://10.0.0.236/trunk@196341 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/components/search/content/search.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/browser/components/search/content/search.xml b/mozilla/browser/components/search/content/search.xml index 1321bbe5c56..8f3b6166442 100644 --- a/mozilla/browser/components/search/content/search.xml +++ b/mozilla/browser/components/search/content/search.xml @@ -569,10 +569,15 @@ mOuter: this, onDrop: function (aEvent, aXferData, aDragSession) { - var data = transferUtils.retrieveURLFromData(aXferData.data, + var data = transferUtils.retrieveURLFromData(aXferData.data, aXferData.flavour.contentType); if (data) { + // Remove the search bar's empty attribute, since we're setting + // a value without focusing the textbox. If it's not empty, this + // won't do anything. This can be removed if bug 280635 is fixed. + this.mOuter._getParentSearchbar().removeAttribute("empty"); this.mOuter.value = data; + this.mOuter.onTextEntered(aEvent); } },