Closed Bug 1643475 Opened 4 years ago Closed 4 years ago

Enable form history / historical searches on 78 release and put them behind the same prefs as remote suggestions

Categories

(Firefox :: Address Bar, task, P1)

task
Points:
2

Tracking

()

VERIFIED FIXED
Firefox 79
Iteration:
79.1 - June 1 - June 14
Tracking Status
firefox78 --- verified
firefox79 --- verified

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

At the search meeting with mconnor today, we had a go/no-go for form history on 78 release and decided to go. So we should set browser.urlbar.maxHistoricalSearchSuggestions to 2 unconditionally: https://searchfox.org/mozilla-central/rev/598e50d2c3cd81cd616654f16af811adceb08f9f/browser/app/profile/firefox.js#284

We also talked about how to handle form history wrt to prefs. In the long term, we want to reorganize the prefs UI and add a way for users to toggle form history on and off. I'll file another bug for that and mark it as a see-also. In the short term including on 78, we want form history to behave like remote suggestions wrt to prefs. So if a user has remote suggestions enabled, then form history will also be enabled, and vice versa. This is in addition to browser.urlbar.maxHistoricalSearchSuggestions. The logic for determining whether remote suggestions are enabled is here, so we'll probably want all of that for form history too: https://searchfox.org/mozilla-central/rev/598e50d2c3cd81cd616654f16af811adceb08f9f/browser/components/urlbar/UrlbarProviderSearchSuggestions.jsm#140

Of course we'll need to uplift this to 78.

Status: NEW → ASSIGNED
Summary: Enable form history / historical searches on release and put them behind the same prefs as remote suggestions → Enable form history / historical searches on 78 release and put them behind the same prefs as remote suggestions
Depends on: 1398416

We didn't talk specifically about private browsing in the meeting today, but we
did say we want to treat form history like remote suggestions, so this patch
checks queryContext.allowSearchSuggestions and queryContext.isPrivate in
addition to the browser.urlbar.suggest.searches and
browser.search.suggest.enabled prefs.

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4de50792fb20 Enable form history / historical searches on 78 release and put them behind the same prefs as remote suggestions. r=mak
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
Flags: qe-verify+
Flags: in-testsuite+

Comment on attachment 9154454 [details]
Bug 1643475 - Enable form history / historical searches on 78 release and put them behind the same prefs as remote suggestions.

Beta/Release Uplift Approval Request

  • User impact if declined: This patch enables search suggestions from history on beta 78. We'll have to wait until 79 to ship this feature if this is declined.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. Type "test" in the urlbar and hit enter to do a search.
  1. Type "tes" (no trailing "t") in the urlbar. As you are typing, there should be a "test" suggestion result in the urlbar view, and it should have a clock icon to indicate it's a suggestion from history.
  2. Press enter or click the "test" suggestion from history. Firefox should load a new "test" search on the default search engine.
  3. Open about:preferences#search and uncheck "Show search suggestions in address bar results".
  4. Type "tes" in the urlbar again. There should not be a "test" suggestion result.
  5. In about:preferences#search, check "Show search suggestions in address bar results" and uncheck "Provide search suggestions".
  6. Type "tes" again. There should not be a "test" suggestion result.
  7. In about:preferences#search, check "Provide search suggestions".
  8. Type "tes" again. There should be a "test" suggestion result.
  9. Open a private window and type "tes". There should not be a "test" suggestion result.
  10. In about:preferences#search, check "Show search suggestions in Private Windows".
  11. In the private window, type "tes". There should be a "test" suggestion result from history.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This code is covered well by tests and it only affects suggestions in the urlbar.
  • String changes made/needed:
Attachment #9154454 - Flags: approval-mozilla-beta?

Comment 6 doesn't really explain why this can't/shouldn't ride the trains.

Flags: needinfo?(adw)

Product would like to enable this feature ASAP on 78. We have data from Google that suggests it will increase the number of searches done through the urlbar.

Flags: needinfo?(adw)
QA Whiteboard: [qa-triaged]

Verified as fixed using the steps from comment 6 with latest Nightly 79.0a1 2020-06-09 under Win 10 64-bit, Ubuntu 18.04 64-bit and Mac OS X 10.15.

Status: RESOLVED → VERIFIED

Comment on attachment 9154454 [details]
Bug 1643475 - Enable form history / historical searches on 78 release and put them behind the same prefs as remote suggestions.

approved for 78.0b6

Attachment #9154454 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I can confirm this fix has landed on beta as well.
I verified used Fx 78.0b6 on Windows 10 x64 and macOS 10.13.

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

Attachment

General

Created:
Updated:
Size: