[webkit-changes] [WebKit/WebKit] 9c2a2b: [Unified Text Replacement] When receiving text wit...

Richard Robinson noreply at github.com
Wed May 22 13:04:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9c2a2b42f8fab8d7d5a776f5e2342772fa2ef6c7
      https://github.com/WebKit/WebKit/commit/9c2a2b42f8fab8d7d5a776f5e2342772fa2ef6c7
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-05-22 (Wed, 22 May 2024)

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

  Log Message:
  -----------
  [Unified Text Replacement] When receiving text with a replacement range, a trailing newline can sometimes go missing
https://bugs.webkit.org/show_bug.cgi?id=274504
rdar://128084320

Reviewed by Ryosuke Niwa.

When creating the context, omit any trailing newlines in the first place, since they will not be
actually used, and newlines behave semi-erratically anyways.

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

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



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


More information about the webkit-changes mailing list