Closed Bug 1740289 Opened 4 years ago Closed 4 years ago

onShowDynamicToolbar does not fire though the webpage is updated

Categories

(Core :: Layout, defect)

Unspecified
All
defect

Tracking

()

RESOLVED FIXED
97 Branch
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?

This seems to be about correctly detecting whether the page is still scrollable. Can someone please take a look for us?

Component: General → Layout
Product: GeckoView → Core

Hiro, can you take a look at this?

Flags: needinfo?(hikezoe.birchill)

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: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
Flags: needinfo?(hikezoe.birchill)
See Also: → 1690296
Severity: -- → S3

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

Another related issue which could be resolved by these changes - https://github.com/mozilla-mobile/fenix/issues/22441

See Also: → 1694607
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6477cdcc812e Notify onShowDynamicToolbar on overflow: hidden case. r=geckoview-reviewers,agi,emilio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
See Also: → 1762255
Blocks: 1813698
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: