Closed Bug 1655473 Opened 4 years ago Closed 4 years ago

Allow autofill only in local search modes

Categories

(Firefox :: Address Bar, defect, P2)

defect
Points:
2

Tracking

()

VERIFIED FIXED
82 Branch
Iteration:
82.1 - Aug 24 - Sep 6
Tracking Status
firefox82 --- verified

People

(Reporter: mak, Assigned: bugzilla)

References

Details

Attachments

(1 file)

I was testing our current implementation, if we are autofilling and the user enters search mode, we should remove the autofilled part and in general never autofill when search mode is set to search.

That likely means setting allowAutofill to false when we start search mode searches.

As of bug 1647890 we don't autofill at all in search mode. We may actually want to autofill for the local one-offs. UX is going to think about it.

Keywords: blocked-ux

Comment 1 isn't entirely accurate. If there's currently an autofill result and then a one-off is clicked, we don't clear the autofill from the input. We don't fetch autofill for subsequent keystrokes, however. UX is still thinking over whether we should autofill for the local one-offs, but clearing autofill for search engine search modes is expected.

is there a test covering this?

No, I don't think so. We could add one when we fix this bug?

Update from UX: we should autofill when in a local search mode. So this bug encompasses implementing that behaviour, and clearing autofill when entering a remote search mode.

Assignee: nobody → htwyford
Status: NEW → ASSIGNED
Iteration: --- → 82.1 - Aug 24 - Sep 6
Points: --- → 2
Summary: don't autofill when we restrict to a search engine → Allow autofill only in local search modes
Keywords: blocked-ux

That conflicts with bug 1659204 though. Verdi said we shouldn't have heuristic results at all in local search mode, but in order to autofill, there has to be a heuristic result. What's the rationale for allowing autofill in local search mode?

(In reply to Drew Willcoxon :adw from comment #8)

That conflicts with bug 1659204 though.

In general heuristic results except autofill don't make sense in local search mode. I don't know what's the right answer here, imo there should be no heuristic, though I could accept autofill as an exception.
I'm wondering though what happens if we're are in local search mode with a search string and the user presses enter? Nothing? Searching wouldn't make sense. I guess that's the central part of bug 1659204.

I messaged Verdi about this issue.

Keywords: blocked-ux

Verdi confirms that we can show the autofill heuristic in local search modes. We should not show the search heuristic. This means that sometimes Enter will execute a search, and sometimes it will not. This is an acceptable trade-off.

Keywords: blocked-ux
Pushed by htwyford@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/83153a82d391
Allow autofill only in local search modes. r=adw
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

I verified this issue using 82.0a1 (2020-09-14) on macOS 10.13 and Windows 10 x64.
Adrian could you help me with Ubuntu verification?

Flags: needinfo?(adrian.florinescu)

Verified as fixed using latest Nightly 83.0a1 under Ubuntu 18.04 64-bit.

Status: RESOLVED → VERIFIED
Flags: needinfo?(adrian.florinescu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: