| Summary: | overscroll-behavior: none doesn't prevent overscroll when page is too small to scroll | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Kurt Revis <krevis> | ||||
| Component: | Scrolling | Assignee: | Nikos Mouchtaris <nmouchtaris> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | karlcow, nmouchtaris, simon.fraser, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
| Version: | Other | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Kurt Revis
2022-08-22 19:13:48 PDT
Created attachment 461811 [details]
Test case
I'm suspicious of this code in WebCore/page/FrameView.cpp:
OverscrollBehavior FrameView::verticalOverscrollBehavior() const
{
auto* document = frame().document();
auto scrollingObject = document && document->documentElement() ? document->documentElement()->renderer() : nullptr;
if (scrollingObject && renderView() && renderView()->canBeScrolledAndHasScrollableArea())
return scrollingObject->style().overscrollBehaviorY();
return OverscrollBehavior::Auto;
}
When renderView()->canBeScrolledAndHasScrollableArea() is false, we ignore the style and return Auto instead. What is that check trying to accomplish?
Pull request: https://github.com/WebKit/WebKit/pull/8859 Committed 259227@main (487c9dfe271c): <https://commits.webkit.org/259227@main> Reviewed commits have been landed. Closing PR #8859 and removing active labels. |