Open Bug 1920019 Opened 2 months ago Updated 1 month ago

The dynamic toolbar overlaps an active input field for certain page heights

Categories

(Core :: Panning and Zooming, defect, P2)

Unspecified
Android
defect

Tracking

()

People

(Reporter: ajakobi, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

This regresses bug 1855990.

Hiding the toolbar wouldn't be the correct behavior. See comment #2 and comment #3

When the default mode for interactive-widget is set, the condition in AsyncPanZoomController::ZoomToRect does not evaluate to true because scrollableRectHeight is always larger than lvh. (reproducible with attached test page interactive-widget-default)

In contrast, when setting interactive-widget=resizes-content, the condition does evaluate to true and the toolbar can be hidden. Which as of now is only seen on GeckoView and will be available on Fenix when bug 1900622 is resolved. (reproducible with attached test page interactive-widget-resizes-content)

I am assuming in the case of interactive-widget=resizes-visual, we don't need to hide the toolbar.

And moreover in the case of interactive-widget=resizes-visual, we should not change the dynamic toolbar height, since changing the height changes the layout viewport size, which means it violates the spec.

That's good information. Should we then rather rephrase this bug to 'The dynamic toolbar overlaps an active input field for certain page heights'?

Yep, probably there needs some tweaks in scroll-into-view machinery if the input field isn't in the view.

Summary: Default setting of interactive-widget prevents hiding dynamic toolbar for certain page heights → The dynamic toolbar overlaps an active input field for certain page heights

Going by comment #5 this seems like something that would be handled entirely in Gecko.
Not sure how big the effort would be.
Given that this is an old bug/edgecase and I see the work on bug 1900622 is considered paused should these two tickets block the release of the navbar or can be seen as later improvements?

Flags: needinfo?(ajakobi)

See bug 1900622, comment #38: I don't think this should block the release of the navbar.

Flags: needinfo?(ajakobi)

Fenix could always hide the bottom toolbar whenever the keyboard is visible. This is what Safari does. I think that would fix this testcase.

(In reply to Markus Stange [:mstange] from comment #8)

Fenix could always hide the bottom toolbar whenever the keyboard is visible. This is what Safari does. I think that would fix this testcase.

This is an interesting approach though I think we have always shown the bottom toolbar on top of the keyboard - users are used to this and it does help with security - knowing exactly where you're typing a password for example.
Also we'd be left with issues similar to bug 1916154.

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

Attachment

General

Created:
Updated:
Size: