Extra padding appears below m.youtube.com Navigation Bar
Categories
(GeckoView :: General, defect)
Tracking
(Not tracked)
People
(Reporter: r_faizaan, Unassigned, NeedInfo)
Details
Attachments
(1 file)
|
1.29 MB,
image/png
|
Details |
Steps to reproduce:
I can reproduce this at will by following these steps:
- Open Firefox Fenix
- Go to m.youtube.com
- Go to the browser's Settings > Customize
- Set Address bar location to Top
- Set Toolbar layout to Simple
- Enable Scroll to hide toolbar
- Scroll down and up on the page
Environment:
Version: 158.0a1
Build ID: 20260919215217
- Locally built Nightly from mozilla-central
- Reproducible on both an emulator (mozemulator-android34-x86_64) and my physical Samsung Galaxy S23 FE with Android version 16, One UI version 8.5
Actual results:
Extra padding appears below Youtube's navigation bar at the bottom of the page. When scrolling up and the address bar is revealed. The extra padding disappears when scrolling down and the address bar is hidden.
Additional Notes:
- Does not occur on Google Chrome or Samsung Internet using the same device, same steps
- Does not occur when Address bar location is set to Bottom instead of Top
- Does not occur when Scroll to hide is disabled
Expected results:
There is no extra padding below YouTube's navigation bar.
Comment 1•2 months ago
|
||
The severity field is not set for this bug.
:owlish, could you have a look please?
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 2•1 month ago
|
||
I would like to attempt fixing this myself if no one else is working on it. I'm new to the Gecko codebase, so if anyone can point me toward the code that handles this interaction between the dynamic toolbar and bottom-fixed content, I would appreciate it.
| Reporter | ||
Comment 3•1 month ago
|
||
Here are some observations I made, on an Android 34 emulator with 3-button navigation and the address bar set to Top:
- The navigation bar on m.youtube.com is an HTML component named
ytm-pivot-bar-renderer - This bottom padding is computed from
env(safe-area-inset-bottom) - To check the
env()value without YouTube’s CSS involved, I ran this in the console:
(() => { const d = document.createElement('div'); d.style.paddingBottom = 'env(safe-area-inset-bottom)'; document.body.appendChild(d); const v = getComputedStyle(d).paddingBottom; d.remove(); return v; })() - On Firefox, with the toolbar visible: 36.3px
- On Firefox, with toolbar hidden: 0px
- On Chrome on the same emulator, with the toolbar visible or hidden: 0px
- 36.3px matches the height of the system navigation bar (121 device px ÷ devicePixelRatio 3.333)
I’m not sure whether Firefox’s value or the page’s use of it is at fault, but the first thing to investigate could be why Firefox returns a non-zero value for env(safe-area-inset-bottom) when the toolbar is visible.
| Reporter | ||
Comment 4•1 month ago
|
||
After further exploration, this may be a duplicate of bug 2057232
Description
•