Closed Bug 1545731 Opened 5 years ago Closed 5 years ago

Don't autofill on backspace when a non-heuristic result is selected

Categories

(Firefox :: Address Bar, defect, P3)

defect
Points:
2

Tracking

()

RESOLVED DUPLICATE of bug 719888

People

(Reporter: dao, Unassigned)

References

Details

+++ This bug was initially created as a clone of Bug #1522278 +++

See bug 1522440 comment 20:

With bug 1543561 fixed the test now times out here: https://searchfox.org/mozilla-central/rev/d302c3058330a57f238be4062fddea629311ce66/accessible/tests/browser/events/browser_test_focus_urlbar.js#155

The reason seems to be that we incorrectly autofill after backspace, and then the result list is too short, and instead of selecting a result the test selects a one-off search button.

It looks like bug 1522278 wasn't fully effective if it didn't even cause this bug in the first place.

No longer depends on: 1522278
Regressed by: 1522278

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task

Bot is wrong.

Type: task → defect
Points: --- → 2
Priority: -- → P2
Assignee: nobody → adw
Iteration: --- → 68.3 - Apr 15 - 28
Status: NEW → ASSIGNED

Even with bug 1522278 reverted, this test still causes autofill on backspace. (I noticed that the test also produces different results with quantumbar vs. awesomebar even up to the point where the autofill incorrectly happens, though, so I'm not clear on how much of the test's hanging on quantumbar has to do with that vs. this autofill problem.)

The test presses the down arrow key to select a non-heuristic result and then backspaces, and then autofill is triggered.

The problem before bug 1522278 landed (I think) is that the autofill logic only did prefix matching against the autofilled placeholder. In the case of the test, the placeholder is irrelevant.

After bug 1522278 landed, there's no selection in the input at all, subverting the new don't-autofill logic.

Removing bug 1522278 in the regressed-by field, see previous comment.

No longer regressed by: 1522278

I just noticed awesomebar has this same behavior -- autofilling on backspace after selecting a non-heuristic result -- so this isn't even something that quantumbar regressed. (Even so, we should still consider fixing it.) So it seems the reason this test is now hanging is that different results are produced on quantumbar vs. awesomebar up to the point that the test hangs on quantumbar.

Also removing this as a quantumbar-release blocker since this happens in awesomebar, as mentioned earlier. Actually we should either close this bug or morph it into not autofilling on backspace when a non-heuristic result is selected.

No longer blocks: quantumbar-release
Summary: We incorrectly autofill after backspace in browser_test_focus_urlbar.js → Don't autofill on backspace when a non-heuristic result is selected

This isn't urgent, so I'm going to unassign myself and change the priority.

Assignee: adw → nobody
Status: ASSIGNED → NEW
Iteration: 68.3 - Apr 15 - 28 → ---
Priority: P2 → P3
No longer blocks: 1522440

This is bug 719888 actually

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.