Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f22e250b3d32a8f200b25f3e4e29681eca0b4c1
      
https://github.com/WebKit/WebKit/commit/7f22e250b3d32a8f200b25f3e4e29681eca0b4c1
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M Source/WebCore/page/text-extraction/TextExtraction.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.swift

  Log Message:
  -----------
  [Text Extraction] Automatic password fixes on MEGA.nz are still flaky (agent 
is sometimes confused by password change form)
https://bugs.webkit.org/show_bug.cgi?id=324709
rdar://187895616

Reviewed by Abrar Rahman Protyasha.

Make a targeted adjustment to help the password change agent reason about 
MEGA's change password
form, whose 'Change Password' form submission button only shows up after a new 
strong password is
AutoFilled:

1.  If search `text` is specified in the click interaction that targets a 
button with no rendered
    text, allow the interaction to happen as long as the `text` is contained 
within the non-rendered
    contents of the target and the target is "not very large" (i.e. roughly 
button/link-sized), or
    if the target itself is already a form control or link, simply waive the 
text match altogether.

2.  Bump up the character limit for 'fallback human readable class names' 
slightly, to capture the
    `change-password-button` class.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.swift

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::searchTextMatchesUnrenderedElementText):
(WebCore::TextExtraction::textDescription):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.swift:
(TextExtractionTests.interactionDescriptionUsesUnrenderedTextForCollapsedTarget):

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



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

Reply via email to