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

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

  Log Message:
  -----------
  [Text Extraction] Web process can crash if the client requests a JS handle 
for a stale node ID
https://bugs.webkit.org/show_bug.cgi?id=317670
rdar://180426301

Reviewed by Abrar Rahman Protyasha.

Add a missing `null` check, with an API test to exercise the fix.

Test: TextExtractionTests.RequestJSHandleForStaleNodeIdentifier

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::rangeForExtractedText):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/TextExtractionTests.mm:
(TestWebKitAPI::RequestJSHandleForStaleNodeIdentifier)):

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



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

Reply via email to