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)
Tracking
(Not tracked)
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.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
It would be useful to confirm if this is still an issue in newer versions. Can you reproduce with a current Fenix build?
| Reporter | ||
Comment 2•5 years ago
|
||
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.
| Reporter | ||
Comment 3•5 years ago
|
||
Video of the issue in the latest GVE.
Comment 4•5 years ago
|
||
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.
Comment 5•5 years ago
|
||
Found the issue I opened before; https://github.com/mozilla-mobile/android-components/issues/4780
| Reporter | ||
Comment 6•5 years ago
|
||
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?
Comment 7•4 years ago
|
||
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.
Comment 8•4 years ago
|
||
(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.)
| Reporter | ||
Comment 9•4 years ago
|
||
Still seeing issues, easier to reproduce in desktop mode.
| Reporter | ||
Comment 10•4 years ago
|
||
Issues on today's Fenix Nightly.
| Reporter | ||
Comment 11•4 years ago
|
||
Issues on today's GVE - https://drive.google.com/file/d/1ZGaePKROJscIUcCEmjtFLJXHRT8O3lxJ/view?usp=sharing
Updated•4 years ago
|
Comment 12•4 years ago
|
||
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.
Comment 13•4 years ago
|
||
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.)
| Reporter | ||
Comment 14•4 years ago
|
||
I seem to indeed get the same results on today's GVE with the above testcase.
Comment 16•4 years ago
|
||
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.
Comment 17•4 years ago
•
|
||
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,
Comment 18•4 years ago
|
||
Moving toolbar bugs to the new GeckoView::Toolbar component.
Updated•2 years ago
|
Description
•