From 4468712ca7e10fd07d83a91be2ef5b14c1e679ea Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Mon, 15 May 2006 20:31:02 +0000 Subject: [PATCH] Bug 336625: text remains grey when dragged to the search bar, r=jhughes git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@196577 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/components/search/content/search.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/browser/components/search/content/search.xml b/mozilla/browser/components/search/content/search.xml index c0167117e97..2680966d7cd 100644 --- a/mozilla/browser/components/search/content/search.xml +++ b/mozilla/browser/components/search/content/search.xml @@ -596,7 +596,12 @@ 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); } },