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

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

  Log Message:
  -----------
  [AutoFill Debugging] Fix an occasional web content process crash under 
`searchForClickTarget`
https://bugs.webkit.org/show_bug.cgi?id=315217
rdar://177450427

Reviewed by Abrar Rahman Protyasha.

Add a missing null check to guard against the case where both search text and 
an invalid node
identifier was present.

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

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::textDescription):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm:
(TestWebKitAPI::TEST(TextExtractionTests, 
InteractionDebugDescriptionWithStaleNodeIdentifier)):

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



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

Reply via email to