onShowDynamicToolbar does not fire though the webpage is updated
Categories
(Core :: Layout, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox97 | --- | fixed |
People
(Reporter: petru, Assigned: hiro)
References
Details
Attachments
(2 files)
Issue seen while testing https://github.com/mozilla-mobile/fenix/issues/9970
#1690296 added a new ContentDelegate#onShowDynamicToolbar method to inform clients when the toolbar should be shown.
Tested now and confirmed that callback fires for the reddit STRs.
But when testing on gv-sandbox.glitch.me whether a previously hidden toolbar appears when the content is set to not be scrollable I see the webpage content updated but the onShowDynamicToolbar is not firing.
Not sure whether this callback should fire in the current implementation but if not maybe the functionality can be expanded to help in this case also?
Comment 1•4 years ago
|
||
This seems to be about correctly detecting whether the page is still scrollable. Can someone please take a look for us?
| Assignee | ||
Comment 3•4 years ago
|
||
Yeah, indeed this case is a fell out case in bug 1690296. An excuse I can say is overflow: hidden is scrollable in terms of the spec. The fix should be straightforward.
I am taking for now, that said, if one of the new GeckoView team members is looking for an easy-to-handle bug, I'd be happy to mentor the person. If so please let me know.
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 4•4 years ago
|
||
| thankyou | ||
The reason why we don't change GetOverflowState is that GetOverflowState is also
used for overflow/underflow event firing and our frontend code expects both
the events are fired on overflow:hidden elements [1]. And it looks like it's by
design as per one of test cases for overflow events has overflow:hidden style
in the first place.
[1] https://searchfox.org/mozilla-central/rev/df6434d2ebfdf2b5f89f205fc81d60d64a774fe1/devtools/client/shared/components/tabs/Tabs.css#38-39
[2] https://searchfox.org/mozilla-central/rev/df6434d2ebfdf2b5f89f205fc81d60d64a774fe1/layout/generic/test/test_overflow_event.html#46
| Reporter | ||
Comment 5•4 years ago
|
||
Another related issue which could be resolved by these changes - https://github.com/mozilla-mobile/fenix/issues/22441
Comment 7•4 years ago
|
||
| bugherder | ||
Description
•