Closed Bug 1712280 Opened 5 years ago Closed 4 years ago

A "dead" area is displayed on websites with a fixed-position footer with `bottom:0` when carefully scrolling to show/hide dynamic toolbar

Categories

(GeckoView :: General, defect)

Unspecified
Android
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1734261

People

(Reporter: petru, Unassigned)

References

Details

(Whiteboard: [fenix:toolbar])

Attachments

(4 files)

From github: https://github.com/mozilla-mobile/fenix/issues/16386.

Dear Mozille-Firefox-Android-Team,

Steps to reproduce

Open e.g. the website

https://homepage.tachtler.net/homepage/de_mobile_01_main.action

or

https://media.kulturbanause.de/2017/04/responsive-sticky-footer-table-layout.htm

or many other sites with a "sticky header"

in Firefox for Android and wipe the screen up and down several times.

A "dead" area is now displayed on the lower screen wheel, which is no longer included in the 100% height of the screen.

Expected behavior

No "dead" area should be displayed on the lower screen wheel.

See the following screenshot once with the "wrong" representation in Firefox for Android

and one with the "right" representation in Chrome for Android.

Actual behavior

This problem occurs on many web pages with sticky header

Open a website with a sticky header.

Wipe the screen up and down several times.

A "dead" area is now displayed on the lower screen wheel, which is no longer included in the 100% height of the screen.

Device information

  • Android device: Samsung Galaxy S8 ( SM-G950F )

  • Android version: Stock image, Android Version 9

  • Kernel -Version: 4.4.111-18920278

  • Fenix version: 82.1.1 (Build #2015770923)

Thank you!
Klaus Tachtler.

Change performed by the Move to Bugzilla add-on.

Component: General → Layout
Product: GeckoView → Core
Whiteboard: [fenix:toolbar]

It would be useful to confirm if this is still an issue in newer versions. Can you reproduce with a current Fenix build?

Flags: needinfo?(petru.lingurar)

I tried different scenarios and I found one which probably shouldn't happen:
https://homepage.tachtler.net/homepage/de_mobile_01_main.action is scrollable (I see PZC INPUT_RESULT_HANDLED though nothing changes in the page) in desktop mode on Firefox but not on Chrome.

In this scenario the issue can be reproduced if scrolling down just a little.

Attached video ToScrollOrNotTo.mp4 —

Video of the issue in the latest GVE.

Flags: needinfo?(petru.lingurar)

Hey Petru, can you elaborate what the problem you saw is? The issue you are mentioning is that the position:stick element stays at a position even if the dynamic toolbar is hidden around 3s in the recording? If it's the issue you are seeing, I assume you leave your finger at that moment? If so, that's an issue in AC or Fenix, I believe I opened an issue for the case, a problem is when user leave their finger either Fenix or AC doesn't tell it to GeckoView, things may have been since I filed the issue though.

Flags: needinfo?(petru.lingurar)

Thank you Hiro!
Followed your suggestion about vertical clipping and saw that there is indeed an issue in AC here where we'd always floor the float value of the toolbar's translation.
Opened this issue on AC for fixing the rounding bug.
(The video above is from GeckoView Example so maybe it needs the same fix?)

But even with that issue on AC, I would've expected that dynamic element's position to exactly follow the vertical clipping value we send and visually this doesn't seem to happen with the bug from the video above being caused by only 1px difference.
Is this the website breaking things or can something be improved on GV also?

Flags: needinfo?(petru.lingurar)

Hi petru - can you clarify if this still reproduces?

I spent a few minutes testing at https://homepage.tachtler.net/homepage/de_mobile_01_main.action in Firefox Nightly on Android, and I wasn't able to reproduce the "floating footer above dead-space" issue (on scrolling) that's shown in your comment 3 screencast -- I assume that's the unexpected-result that we're looking to avoid here.

Flags: needinfo?(petru.lingurar)

(I do see https://github.com/mozilla-mobile/android-components/issues/10668 has a similar screencast and has an indication that it was fixed; it's not clear to me whether that means we can close this bug too, or if there was something distinct that we were tracking here.)

Still seeing issues, easier to reproduce in desktop mode.

Flags: needinfo?(petru.lingurar)

Issues on today's Fenix Nightly.

Severity: -- → S3

Thanks.

For the record: I looked at the site a little bit in devtools. The element in question is not actually position:sticky despite having "sticky" in the source code (it has sticky is-stuck in the class attribute); instead, it's got position:fixed; bottom:0; top: auto. That element seems to be the one having the problem.

Summary: A "dead" area is displayed on websites with a "sticky" header after the screen has been wiped up and down several times. → A "dead" area is displayed on websites with a fixed-position footer with `bottom:0` when carefully scrolling to show/hide dynamic toolbar
Attached file maybe a testcase? —

Here's what might be a reduced testcase, based on looking at the site in question. petru, would you mind seeing if you can reproduce the issue (i.e. if you can get into a state where there's an orange bar at the bottom of the screen) with this testcase?

(I can't, but I can't seem to repro with the affected site either.)

Flags: needinfo?(petru.lingurar)
Attached video GreenOrOrange.mp4 —

I seem to indeed get the same results on today's GVE with the above testcase.

Flags: needinfo?(petru.lingurar)

Okay, now I see what Petru meant. Though I am pretty sure I've commented somewhere in a different bug, to fix 1px difference we need to change this setVerticalClipping APIs to use float instead of int.

Component: Layout → General
Keywords: dupeme
Product: Core → GeckoView

Okay found it. It's bug 1734261. I believe this is a dup of bug 1734261, but feel free to un-dup if someone thinks this isn't dup at all,

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Keywords: dupeme

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.

Attachment

General

Created:
Updated:
Size: