[webkit-changes] [WebKit/WebKit] 1bb6cd: REGRESSION(279662 at main): [ iOS 18 ] 6 TestWebKitAP...

Richard Robinson noreply at github.com
Thu Jun 13 23:28:23 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1bb6cdcc3e064f19e32c9e1eddc033be1613fe93
      https://github.com/WebKit/WebKit/commit/1bb6cdcc3e064f19e32c9e1eddc033be1613fe93
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M Source/WebCore/css/MutableStyleProperties.cpp

  Log Message:
  -----------
  REGRESSION(279662 at main): [ iOS 18 ] 6 TestWebKitAPI.UnifiedTextReplacement tests are constant failure
https://bugs.webkit.org/show_bug.cgi?id=275466
rdar://129560001

Reviewed by Megan Gardner.

When receiving replacement text from Writing Tools in the Smart Reply case, a DocumentFragment is
created from the attributed string, which is then used in a `ReplaceSelectionCommand` with `MatchStyle::Yes`.

In this case, if there are internal style attributes involved, then an assertion failure will be reached.

Fix by removing this assertion, since it is perfectly valid to have internal attributes in this case,
and the case is handled fine already anyways.

* Source/WebCore/css/MutableStyleProperties.cpp:
(WebCore::MutableStyleProperties::setProperty):

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