Bug 310393: Hitting Enter in an empty searchbar shouldn't add an empty entry to its form history, r=mano

git-svn-id: svn://10.0.0.236/trunk@190458 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2006-02-18 00:13:58 +00:00
parent 61b7caf589
commit b51e960204

View File

@ -301,7 +301,7 @@
<parameter name="aEvent"/>
<body><![CDATA[
// Save the current value in the form history
if (!this.hasAttribute("disableautocomplete"))
if (this.value && !this.hasAttribute("disableautocomplete"))
this.formHistSvc.addEntry(this.getAttribute(
"autocompletesearchparam"), this.value);