Closed Bug 1994013 Opened 7 months ago Closed 6 months ago

Show inline autocompletions when handling toolbar input in a composable

Categories

(Firefox for Android :: Toolbar, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox145 --- fixed
firefox146 --- fixed

People

(Reporter: petru, Assigned: petru)

References

Details

(Whiteboard: [fxdroid][group3][composable toolbar])

Attachments

(2 files)

Mimic the current functionality of querying passed-in autocomplete providers for autocompletions for the current input.
It's still preferable to handle querying and setting autocompletions at the toolbar level because of the delay that going through the MVI loop would bring.
Testing more it seems like going through the MVI loop:

emit text updates from the toolbar -> infer autocomplete suggestions in the middleware -> update the toolbar with the inline autocomplete suggestion

has just a small performance penalty while the code architecture is greatly improved so we should include this updated flow in the refactor.

Among functionalities needed:

  • updating the autocompletions when the query changes,
  • removing them when user presses back or changes cursor position
  • announce the autocompleted URL to accessibility services
Assignee: nobody → petru
Attachment #9520174 - Attachment description: WIP: Bug 1994013 - New composable to support entering text in the composable toolbar → Bug 1994013 - New composable to support entering text in the composable toolbar r=#android-reviewers
Status: NEW → ASSIGNED
Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bd71d9a75c3b https://hg.mozilla.org/integration/autoland/rev/db94a76a5d3f New composable to support entering text in the composable toolbar r=android-reviewers,Roger
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Blocks: 1980777
Regressions: 1999177

This also allowed to move the complex logic of querying different autocomplete
providers for the suggestion to show as inline autocompletion logic to
integrators like Fenix while having the new composable only responsible for how
to how the received suggestion.

Original Revision: https://phabricator.services.mozilla.com/D268687

Attachment #9527272 - Flags: approval-mozilla-release?
Attachment #9527272 - Flags: approval-mozilla-release? → approval-mozilla-release+
Regressions: 2001290
Regressions: 2010365
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: