[webkit-changes] [WebKit/WebKit] 7003db: [Unified Text Replacement] `WebPage::autocorrectio...

Richard Robinson noreply at github.com
Wed Feb 14 14:13:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7003dbcab5b68f602cad24dd95030c9b67b26e73
      https://github.com/WebKit/WebKit/commit/7003dbcab5b68f602cad24dd95030c9b67b26e73
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm

  Log Message:
  -----------
  [Unified Text Replacement] `WebPage::autocorrectionContextRange` sometimes returns an incorrect range
https://bugs.webkit.org/show_bug.cgi?id=269385
rdar://122960194

Reviewed by Aditya Keerthi.

This function was previously (incorrectly) refactored; fix by reverting it to its original state,
and making the proper fix by simply null-checking the relevant range as appropriate.

Also add some clarifying comments.

* Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm:
(WebKit::WebPage::autocorrectionContextRange):

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




More information about the webkit-changes mailing list