Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a0246b3f1f71689e63587e2de04e60d8eeed9e1d
      
https://github.com/WebKit/WebKit/commit/a0246b3f1f71689e63587e2de04e60d8eeed9e1d
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M 
LayoutTests/fast/text-extraction/text-extraction-scroll-to-next-page-expected.txt
    M LayoutTests/fast/text-extraction/text-extraction-scroll-to-next-page.html
    M LayoutTests/resources/ui-helper.js
    M Source/WebCore/page/text-extraction/TextExtraction.cpp
    M Tools/WebKitTestRunner/cocoa/UIScriptControllerCocoa.mm

  Log Message:
  -----------
  [AutoFill Debugging] Scroll interaction summary string sometimes "Scrolled 
down 0px" even if we scrolled
https://bugs.webkit.org/show_bug.cgi?id=316102
rdar://178531777

Reviewed by Abrar Rahman Protyasha and Megan Gardner.

The new content offset after issuing `scrollToOffsetWithoutAnimation` may still 
be the same as the
old content offset, due to async scrolling. Instead of computing the final 
delta, report the amount
by which we attempted to scroll instead.

* 
LayoutTests/fast/text-extraction/text-extraction-scroll-to-next-page-expected.txt:
* LayoutTests/fast/text-extraction/text-extraction-scroll-to-next-page.html:
* LayoutTests/resources/ui-helper.js:

Add test support for summary strings in text extraction layout tests.

(window.UIHelper.async performTextExtractionInteraction):
(window.UIHelper.async performTextExtractionInteractionResult):
(window.UIHelper):
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::scrollToNextPage):
* Tools/WebKitTestRunner/cocoa/UIScriptControllerCocoa.mm:
(WTR::UIScriptControllerCocoa::performTextExtractionInteraction):

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



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

Reply via email to