Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 60bd2f4eece7ae20392044a2dd65b13709c3bb38
      
https://github.com/WebKit/WebKit/commit/60bd2f4eece7ae20392044a2dd65b13709c3bb38
  Author: j0pan <[email protected]>
  Date:   2026-02-18 (Wed, 18 Feb 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp
    M Source/WebKit/UIProcess/Cocoa/WebPasteboardProxyCocoa.mm

  Log Message:
  -----------
  harmonize codepath for Image transcoding for input and drag/drop
https://bugs.webkit.org/show_bug.cgi?id=292350
rdar://150401192

Reviewed by Wenson Hsieh.

When users drag HEIC/F images onto custom drop zones (divs with ondrop 
handlers),
websites received raw HEIC/F files they couldn't process.
This patch adds automatic HEIC/HEIF to JPEG transcoding in
WebPasteboardProxyCocoa.mm for macOS (getPasteboardPathnamesForType)
and iOS (allPasteboardItemInfo, informationForItemAtIndex).
The transcoding runs asynchronously on a shared background queue to avoid
blocking the UI, then notifies NetworkProcess to grant file access for the
transcoded images. ImageUtilitiesCG.cpp was also updated to preserve original
filenames during transcoding (IMG_0229.HEIC → IMG_0229.jpg).

* Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp:
(WebCore::transcodeImage):
* Source/WebKit/UIProcess/Cocoa/WebPasteboardProxyCocoa.mm:
(WebKit::WebPasteboardProxy::getPasteboardPathnamesForType):
(WebKit::findHEICPathsForTranscoding):
(WebKit::WebPasteboardProxy::allPasteboardItemInfo):
(WebKit::WebPasteboardProxy::informationForItemAtIndex):

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



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

Reply via email to