[webkit-changes] [WebKit/WebKit] 1c0cfd: [Unified Text Replacement] Perform sanitization du...

Aditya Keerthi noreply at github.com
Tue May 7 22:00:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1c0cfd634d26e2056e9a9eaf56a6ea3de2524099
      https://github.com/WebKit/WebKit/commit/1c0cfd634d26e2056e9a9eaf56a6ea3de2524099
  Author: Aditya Keerthi <akeerthi at apple.com>
  Date:   2024-05-07 (Tue, 07 May 2024)

  Changed paths:
    M Source/WebCore/editing/WebContentReader.h
    M Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm
    M Source/WebKit/WebProcess/WebPage/Cocoa/UnifiedTextReplacementController.mm

  Log Message:
  -----------
  [Unified Text Replacement] Perform sanitization during attributed string conversion
https://bugs.webkit.org/show_bug.cgi?id=273853
rdar://125998208

Reviewed by Wenson Hsieh.

Unwanted attributes may be added when converting attributed strings to markup.
Add a new option to fragment creation to sanitize the markup.

* Source/WebCore/editing/WebContentReader.h:
* Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::createFragmentInternal):
* Source/WebKit/WebProcess/WebPage/Cocoa/UnifiedTextReplacementController.mm:
(WebKit::UnifiedTextReplacementController::textReplacementSessionDidReceiveTextWithReplacementRange):

Canonical link: https://commits.webkit.org/278489@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