Closed Bug 298689 Opened 20 years ago Closed 19 years ago

Home key in URL box does not clear autocomplete menu

Categories

(Firefox :: Address Bar, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 255116

People

(Reporter: spam_from_bugzilla, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050531 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050531 Firefox/1.0+

I type a few characters of a URL.  An autocomplete menu pops up.  I use the
up/down cursor keys to select an entry from the menu.  The content of the URL
box is updated as I do this.

If I now type more characters they are added to the end of the URL; similarly I
can press delete to remove characters from the end of the URL, and I can press
the left and right cursor keys or use the mouse to move the insertion point away
from the end of the URL.  When I do any of these things, either the menu is
entirely removed, or it remains visible without a selection, or perhaps a
different completion is selected if my modifed URL has been used before.

But: if I press the "home" key, the insertion point moves to the start of the
URL, and the menu remains visible with the same selection.  If I then type
characters they are inserted but the menu selection remains active.  So when I
press return, the URL selected in the menu is used, not the one I have typed.

My guess is that "home", along with control-A which has the same function on
Linux at least, and perhaps a few other keys, need to be treated in the same way
as the left/right cursor keys in this code, but currently aren't being.

Here's the example that caused me to find this problem:

I have frequently been visiting https://example.com.  I now want to visit
http://example.com.  Only difference is https vs http.

I start typing "exam..." and an autocomplete menu appears including
https://example.com.  I press the cursor down key until https://example.com is
selected in the menu.  The URL box shows example.com.  I press home.  The
insertion point moves to the start of the URL and the menu selection remains
active.  I type http://.  The URL box now shows http://example.com, which is the
URL that I want to visit.  The menu is still present with https://example.com
selected.  I press return.  The browser goes to the wrong URL.


Reproducible: Always

Steps to Reproduce:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050701
Firefox/1.0+ ID:2005070114

Confirming. I'm not seeing this in the Suite, so I'm chaning to Firefox >
Location Bar and Autocomplete.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Autocomplete → Location Bar and Autocomplete
Product: Toolkit → Firefox
Related to/duplicate of bug 255116?
Yes, bug 255116 looks like the same problem or at least its fix will also fix
this.  Not sure why I didn't find that before; I suppose I didn't try the right
combination of search keywords.

--Phil.

*** This bug has been marked as a duplicate of 255116 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Phil, you're not insane.  I changed the summary of bug 255116 recently; it
didn't even contain the word "Home" before.
You need to log in before you can comment on or make changes to this bug.