[webkit-changes] [WebKit/WebKit] cec6fc: Clients should not be informed about inner image-o...

Gerald Squelart noreply at github.com
Wed Mar 15 16:24:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cec6fc7f82ae6257abaf901496865dfb106ae82b
      https://github.com/WebKit/WebKit/commit/cec6fc7f82ae6257abaf901496865dfb106ae82b
  Author: Gerald Squelart <g_squelart at apple.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M Source/WebCore/editing/Editor.cpp

  Log Message:
  -----------
  Clients should not be informed about inner image-only attachments
https://bugs.webkit.org/show_bug.cgi?id=253924
rdar://106567546

Reviewed by Tim Horton and Aditya Keerthi.

Image-only attachments are an implementation detail of the new wide-layout attachments. (This will eventually be removed, see rdar://105252742 )

Because clients (like Mail) knew about this image-only attachment, they could confusingly give information (about the referenced file) only to this inner attachment, so when the outer attachment brick would get dropped elsewhere it wouldn't know what information to provide, which resulted in drag-and-drops doing nothing.

The solution is to not inform clients about image-only attachments.

* Source/WebCore/editing/Editor.cpp:
(WebCore::Editor::didInsertAttachmentElement):

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




More information about the webkit-changes mailing list