Added by @bbinto
This features should not break our privacy promise as search engine will know your entered search term anyways
Current type_query vs. type_keyword query: https://sql.telemetry.mozilla.org/queries/48193/source#146072

In Firefox, we offer search suggestions, and the current opt-in rate is high, > 60% of Firefox users have search suggestions turned on: https://sql.telemetry.mozilla.org/queries/983#146244
should not break our privacy promise as search engine will use know your entered search term anyways
This assumes the text I enter will be a search though. :)
Anyhow, I think if it's a user's explicit choice to use search suggestions then this is fine. I like how desktop and Fennec ask whether you want search suggestions the first time you start typing.
While it’s a good idea to reduce friction, keep in mind that browsers have always considered search suggestions a privacy issue.
Google Chrome puts this option under “Privacy and Security” and explains:
…If your default search engine provides a suggestion service, the browser might send the text you type in the address bar to the search engine.
And Firefox explains:
[…] users concerned about this information being collected may not wish to enable search suggestions.
To see it from the user’s point of view, it’s all about agency and info transmission: does Focus send what I type on the address bar to Google, Yahoo, Bing, etc., before I tap Enter?
Keeping this in mind:
All good points and shows how much we have to make sure all the items you've mentioned in "keeing in mind" need to be perfectly addressed.
Currently, our search UI looks like this:

To accommodate search suggestions in a privacy-aware way, the search loupe icon will need to be replaced with the icon of the search provider where the query is sent to:

After search suggestions is enabled, many search query suggestions may be shown, but the search provider icon only needs to be shown once:

It’s tempting to follow Fennec’s UI here, where each search suggestion is displayed right next to each other horizontally. However, this was only done because Fennec needs to show browser history along with search suggestions.
Focus doesn’t need to show any browser history, so we have the luxury of vertical space to put all the search suggestions in.
Simple and straightforward. “Show search suggestions” is a checkbox under the Search section (in the new structure, it’s inside the Search category).

Just leaving a note for @boek to see whether fetching and showing search query suggestions from a third-party have any potential to interrupt our existing URL autocomplete logic.
This issue is ready for engineering breakdown. Feel free to ask me any implementation questions!
If possible, try and explain the privacy tradeoff somewhere (“Would you like to turn on search suggestion? Only what you type will be sent to Google.”)
Do we want to do this @bbinto?
If possible, try and explain the privacy tradeoff somewhere (“Would you like to turn on search suggestion? Only what you type will be sent to Google.”)
Do we want to do this @bbinto?
Yes, I think crucial for providing transparency to the user
^ @boek
Just something to keep in mind:
On Focus for iOS, the active URL bar area is going to contain quite a lot of functionalities. It already has “Copied link”, but will have have “Find in page” and “Add custom URL” in the future.
For feature parity, Focus for Android may want to consider adding the above two functionalities. However, if we’re already going to show 4–5 or more search suggestions in this issue, then the active URL bar area may become too full for other functionalities.
waiting for Android components team
@pocmo can @boek work on this in the next sprint (starting next week)?
@pocmo can @boek work on this in the next sprint (starting next week)?
Yes!
@boek Let me know if you need help!
@boek, I've updated some acceptance criteria in the first comment, please make sure to review and include probes as mentioned.
Updating the visuals to align with our redesign. No new feature has been added.

Spec

@brampitoyo - what happens if somebody uses a custom search engine (that doesn't provide search suggestions), and has search suggestions turned on?
@bbinto You’ve brought up a really important point!
For this scenario to happen, the user’s default search engine will have to be one that isn’t in our list, and one that doesn’t have search suggestions. Thankfully, I think that this scenario won’t be in the majority.
I think that we should try to detect whether the search engine supports suggestions or not. The “brute force” way to do this is to say:
if searchEngine = amazon | duckduckgo | google | twitter | wikipedia
then show "Would you like to turn on search suggestion?"
In other words, if the user’s search engine isn’t on the list, we hold off showing the UI until the user has switched to an engine that’s on the list.
Second scenario: what if the user’s search engine is Google, they tap “Yes” to suggestions, and then they switch to a search engine that doesn’t support it?
Then we can display a one-time banner that can be easily dismissed. Something along this line:

Thoughts?
Yeah, we already know if a search engine supports search suggestions (all our plugins provide that data). Custom search engines will never provide search suggestions as we do not read any search plugin XMLs from the websites but let the user manually enter some search URL.
In other words, if the user’s search engine isn’t on the list, we hold off showing the UI until the user has switched to an engine that’s on the list.
I think just showing no suggestions (and no opt-in) sounds good. It's our current behavior and the default anyways.
I think just showing no suggestions (and no opt-in) sounds good. It's our current behavior and the default anyways.
Let’s stick with this behaviour, then.
@Sdaswani / @brampitoyo to follow up on the
If possible, try and explain the privacy tradeoff somewhere (“Would you like to turn on search suggestion? Only what you type will be sent to Google.”)
Where do we want to display this?
I am punting to @bbinto .
@boek wrote:
If possible, try and explain the privacy tradeoff somewhere (“Would you like to turn on search suggestion? Only what you type will be sent to Google.”)
Where do we want to display this?
We can show this privacy tradeoff message in the URL bar itself:

And as a label under its Settings menu item:

One question I have for @BrianNJones is how best to word this privacy message? Maybe our current message is fine?
We think that showing search suggestions will get users where they want to go faster, increasing app usage, retention, etc.
At the same time, we’d like users to understand that, if they turn search suggestions on, words that they type into the URL bar will be sent to Google’s prediction service in order to fetch related search queries.
I like this - @bbinto do we need to run this by Legal?
@Sdaswani - I believe @BrianNJones normally runs his copy by legal. Could you please confirm, Brian?
@bbinto @Sdaswani we don't run everything through legal; only if if touches on something like this. This would need to be routed their way.
Thanks @brjones - what is the finalized copy to run by Legal?
@brampitoyo @Sdaswani Tricky one to try and keep short. Lot of info.
For the URL bar:
Would you like to turn on search suggestions? To get them, Focus needs to send Google what you type in the address bar.
For Settings:
Turn on search suggestions?
Focus will send Google what you type in the address bar
Thanks @BrianNJones - I know you love a challenge. I think these strings should work fine. cc @boek
Getting Legal approval here: https://bugzilla.mozilla.org/show_bug.cgi?id=1479913
@BrianNJones Are these strings final?
[For URL bar]
To get search suggestions, Focus needs to send what you type in the address bar to the search engine you've chosen. Learn more (links to SUMO article)
[For Settings]
Get search suggestions (pls ignore the question mark in original; my mistake)
Focus will send your search engine what you type in the address bar
@boek
Final:
[For URL bar]
To get search suggestions, Focus needs to send what you type in the address bar to the search engine you've chosen. Learn more (links to SUMO article)
[For Settings]
Get search suggestions
Focus will send what you type in the address bar to your search engine
Learn more (links to SUMO article)