Closed Bug 669129 Opened 13 years ago Closed 5 years ago

Deleting autocomplete result and hitting Enter should not load the deleted URL

Categories

(Firefox :: Address Bar, defect, P3)

defect
Points:
8

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jwatt, Unassigned)

References

Details

(Whiteboard: [unifiedcomplete][fxsearch])

If I type something into the address bar, use the arrow keys to highlight one of the suggestions, delete it (using the Del key on win/linux or shift+backspace on mac), then hit Enter immediately, the URL of the deleted entry is loaded.

I would /guess/ whats happening here is that when using the arrow keys to highlight an entry some state for "URL to load" is updated, but when an entry is deleted that URL is not updated to the URL for the item that is now selected. If someone can point me to the relevant code I'd be happy to submit a patch.
Uh, where the "some state" is the address bar itself, of course.
I can't reproduce this.
Status: NEW → UNCONFIRMED
Ever confirmed: false
Please describe what you did, and what happened to the address in the address bar when you deleted an entry from the suggestions.
I misread comment 0, can reproduce it now.

Involved code:
http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/autocomplete.xml#498
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/autocomplete/nsAutoCompleteController.cpp#545
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Hardware: x86 → All
Summary: Deleting from the address bar dropdown then hitting Enter should not load the deleted URL → Deleting autocomplete result and hitting Enter should not load the deleted URL
Still in FF9, minor bug but annoying during the daily use of the awesome bar.
As FF selects/highligths the next URL following the deleted URL, the location bar should display this URL or nothing (blank) if there is no next URL.
An add-on fixes this annoyance[1].

Perhaps someone could turn it into an actual patch.

[1] https://addons.mozilla.org/en-US/firefox/addon/bug669129/
I want to work on this bug. Can it be assigned to me?
Assignee: nobody → rahul123bhardwaj
Blocks: 777277
Still confirmed in FF 18.0.2
Gijs, I CC'd you to this bug, I know you work on location bar, so maybe one day in the future, you'll have cycles and time to work on it. It's a minor bug but annoying sometimes.
rb, I'm assuming you're no longer working on this... please let us know if you are still.
Assignee: rahul123bhardwaj → nobody
Points: --- → 8
Flags: qe-verify+
Flags: in-testsuite?
Flags: firefox-backlog+
Actually, this bug seems to be gone by now.
No, it's still here in FF37.
Priority: -- → P3
Whiteboard: [unifiedcomplete][fxsearch]
Rank: 37
Severity: normal → major
Blocks: 1239663
would be interesting to retest this and blocked bugs after bug 1236364 is in a nightly.
(In reply to Marco Bonardo [::mak] from comment #17)
> would be interesting to retest this and blocked bugs after bug 1236364 is in
> a nightly.

Sadly, doesn't seem fixed to me on Nightly... can you doublecheck?
Flags: needinfo?(mak77)
yep, looks like there's more. Off-hand sounds like we don't update the input field synchronously on a removal.
Flags: needinfo?(mak77)

I can't reproduce in Quantum Bar (tested in Nightly, but Beta should be the same(. Feel free to reopen if you still see this. Note now you must use SHIFT+DEL to remove an entry.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

(In reply to Marco Bonardo [::mak] from comment #20)

I can't reproduce in Quantum Bar (tested in Nightly, but Beta should be the same(. Feel free to reopen if you still see this. Note now you must use SHIFT+DEL to remove an entry.

No wonder since deleting an item doesn't work at all. It's broken, or not implemented.

(In reply to avada from comment #21)

No wonder since deleting an item doesn't work at all. It's broken, or not implemented.

Did you notice that it is now shift-del rather than just delete? It has been working fine for us. If you still have issues, please file a new bug preferably a screenshot and any messages appearing on the browser console when you're attempting to open up the address bar results and then shift-delete.

(In reply to Mark Banner (:standard8) from comment #22)

(In reply to avada from comment #21)

No wonder since deleting an item doesn't work at all. It's broken, or not implemented.

Did you notice that it is now shift-del rather than just delete? It has been working fine for us. If you still have issues, please file a new bug preferably a screenshot and any messages appearing on the browser console when you're attempting to open up the address bar results and then shift-delete.

I see. It's a counter intuitive change, but the the bug is in fact not present now.

You need to log in before you can comment on or make changes to this bug.