Closed Bug 1668845 Opened 5 years ago Closed 5 years ago

GV renders bottom toolbar placeholder when changing scroll flags

Categories

(GeckoView :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: petru, Unassigned)

References

Details

(Whiteboard: [geckoview:toolbar])

Steps to reproduce

  • in Fenix have the dynamic toolbar set at top.
  • access http://bela-lugosi.de (always happening on this website which has 100% width and height)
  • after the animations end tap a few time the webpage

Expected behavior

  • The page should be rendered fully, not being clipped off.

Actual behavior

GV renders at it's bottom a blank space with the same height as set in setDynamicToolbarMaxHeight.
Observed that this consistently happens because tapping on the screen gets to set different scroll flags(basically NO_SCROLL / SCROLL).

Seen in this video:

  • when the page is loaded based on engineView.getInputResult we set SCROLL_FLAG_SCROLL (the page is rendered fully)
  • first tap sets SCROLL_FLAG_NO_SCROLL (the page is now cutoff at the bottom)
  • second tap sets SCROLL_FLAG_SCROLL (the page is again rendered fully)
  • third tap sets again SCROLL_FLAG_NO_SCROLL (the page is now again clipped, even after a refresh)

Given that this blank space is rendered by GV and only on specific websites I think this is a layout issue in GV.

Device information

  • Android device: Device independent.
  • Fenix version: Happens in both GV 83 (Fenix Nightly) and on GV 81 (Fenix Release)
Component: Layout → General
Product: Core → GeckoView
See Also: → 1663000, 1648079

Though I haven't looked into detail about what happens on the tap, the body element is slightly taller than the browser height - the toolbar height because of margins.

Whiteboard: [geckoview:toolbar]
Severity: -- → S3
Priority: -- → P2

I can no longer see this issue on a local built Fenix with bug 1663000.

Petru, can you please do double-check?

Flags: needinfo?(petru.lingurar)

Also cannot reproduce.
Thank you!
Will add the qa-needed flag on Fenix - https://github.com/mozilla-mobile/fenix/issues/7534 to have that verified and closed on Fenix also.

Flags: needinfo?(petru.lingurar)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Moving toolbar bugs to the new GeckoView::Toolbar component.

Component: General → Toolbar
Component: Toolbar → General
You need to log in before you can comment on or make changes to this bug.