Bug 1715572 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Needed for https://github.com/mozilla-mobile/fenix/issues/19707

We currently have the [`onLoginSelect`](https://searchfox.org/mozilla-central/rev/79d73b4aff88dd4a0f06dd3789e1148c49b0de60/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java#5183) and [`onCreditCardSelect`](https://searchfox.org/mozilla-central/rev/79d73b4aff88dd4a0f06dd3789e1148c49b0de60/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java#5211) prompts which will be triggered whenever the user clicks on a field that can be autocompleted with that type of data.

But these prompts will stay on the screen (at the bottom) until they are consumed by the user picking an item to be autocompleted.

I propose a similar API, maybe something like `onCancelLoginSelect` and `onCancelCreditCardSelect` for when the user clicks in another field / another part of the page which cannot be autocompleted with the data from that prompt.
And then, when the user clicks again in a credit card / login field for the prompt to be re-requested.

I thins would lead to a similar UX as on desktop.
Needed for https://github.com/mozilla-mobile/fenix/issues/19707

We currently have the [`onLoginSelect`](https://searchfox.org/mozilla-central/rev/79d73b4aff88dd4a0f06dd3789e1148c49b0de60/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java#5183) and [`onCreditCardSelect`](https://searchfox.org/mozilla-central/rev/79d73b4aff88dd4a0f06dd3789e1148c49b0de60/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java#5211) prompts which will be triggered whenever the user clicks on a field that can be autocompleted with that type of data.

But these prompts will stay on the screen (at the bottom) until they are consumed by the user picking an item to be autocompleted.

I propose a similar API, maybe something like `onCancelLoginSelect` and `onCancelCreditCardSelect` for when the user clicks in another field / another part of the page which cannot be autocompleted with the data from that prompt.
And then, when the user clicks again in a credit card / login field for the prompt to be re-requested.

I think this would lead to a similar UX as on desktop.

Back to Bug 1715572 Comment 0