Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 50602e4790301374e1134bbc4f564a4e5e90c097
      
https://github.com/WebKit/WebKit/commit/50602e4790301374e1134bbc4f564a4e5e90c097
  Author: Aditya Keerthi <akeer...@apple.com>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M Source/WebCore/editing/cocoa/HTMLConverter.mm

  Log Message:
  -----------
  [MultiRep HEIC][iOS] Copy/paste results in quality loss
https://bugs.webkit.org/show_bug.cgi?id=273420
rdar://126719532

Reviewed by Wenson Hsieh.

On iOS 17.4+, copying web content no longer writes RTF to the pasteboard.
Instead, web archive data is written, and is only converted to RTF when
pasting. In this scenario, there is no loaded image, only attachment data.
Consequently, existing logic to create `WebMultiRepresentationHEICAttachment`
is elided.

Fix by updating `HTMLConverter::_addAttachmentForElement` to be aware of
`WebMultiRepresentationHEICAttachment`.

* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_addAttachmentForElement):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to