Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7d11c41850ce89046d0d632fcd6b31469518ce7e
      
https://github.com/WebKit/WebKit/commit/7d11c41850ce89046d0d632fcd6b31469518ce7e
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-05-20 (Wed, 20 May 2026)

  Changed paths:
    A 
LayoutTests/fast/text-extraction/text-extraction-scroll-fallback-to-large-container-expected.txt
    A 
LayoutTests/fast/text-extraction/text-extraction-scroll-fallback-to-large-container.html
    M Source/WebCore/page/text-extraction/TextExtraction.cpp

  Log Message:
  -----------
  [AutoFill Debugging] `scroll` should fall back to the largest overflow 
scroller if the root is non-scrollable
https://bugs.webkit.org/show_bug.cgi?id=315138
rdar://177474955

Reviewed by Abrar Rahman Protyasha.

In the case where a `scroll` interaction is issued on a page that is not 
actually scrollable, fall
back to scrolling the largest scrollable area (by area).

Test: 
fast/text-extraction/text-extraction-scroll-fallback-to-large-container.html

* 
LayoutTests/fast/text-extraction/text-extraction-scroll-fallback-to-large-container-expected.txt:
 Added.
* 
LayoutTests/fast/text-extraction/text-extraction-scroll-fallback-to-large-container.html:
 Added.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::wrapWithDoubleQuotes):
(WebCore::TextExtraction::findLargeScrollableContainer):
(WebCore::TextExtraction::redirectToLargeScrollableContainerIfNeeded):
(WebCore::TextExtraction::scrollBy):
(WebCore::TextExtraction::scrollToNextPage):

Canonical link: https://commits.webkit.org/313575@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to