diff --git a/xpfe/components/autocomplete/resources/content/autocomplete.xml b/xpfe/components/autocomplete/resources/content/autocomplete.xml
index bcb458169063..57cb04ad2349 100644
--- a/xpfe/components/autocomplete/resources/content/autocomplete.xml
+++ b/xpfe/components/autocomplete/resources/content/autocomplete.xml
@@ -1226,9 +1226,9 @@
this.mSelectedIndex = aRow;
- this.mBoxObject.invalidateRow(aRow);
-
if (aRow != null) {
+ this.mBoxObject.invalidateRow(aRow);
+
this.mBoxObject.ensureRowIsVisible(aRow);
// Fire select event on xul:tree so that accessibility API
// support layer can fire appropriate accessibility events.
@@ -1497,8 +1497,7 @@