Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 85451fa3d26cc098d7d727854a2d881eca6b5122
https://github.com/WebKit/WebKit/commit/85451fa3d26cc098d7d727854a2d881eca6b5122
Author: Joanne Pan <[email protected]>
Date: 2026-03-13 (Fri, 13 Mar 2026)
Changed paths:
A
LayoutTests/editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-data-url-expected.txt
A
LayoutTests/editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-data-url.html
A LayoutTests/editing/pasteboard/paste-image-as-data-url-expected.txt
A LayoutTests/editing/pasteboard/paste-image-as-data-url.html
M LayoutTests/platform/glib/TestExpectations
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/mac-wk2/TestExpectations
M LayoutTests/platform/mac/TestExpectations
M Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h
M Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm
M Tools/TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm
Log Message:
-----------
[iOS] Copied Image does not show content in Yahoo Mail (Browser Version)
https://bugs.webkit.org/show_bug.cgi?id=309400
rdar://168711407
Reviewed by Ryosuke Niwa and Brent Fulgham.
Strict HTML sanitizers reject blob URLs. This change generates inline
base64 data URLs instead,gated behind
SDKAlignedBehaviour::DataURLForPastedImages
so Safari gets data URLs by default and older WebKit-embedding apps keep blob
URLs.
The dataURLForImagesData helper converts UTI type identifiers to
MIME types so data URLs are valid on iOS where pasteboard types are UTIs.
*
LayoutTests/editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-data-url-expected.txt:
Added.
*
LayoutTests/editing/pasteboard/data-transfer-get-data-on-pasting-html-uses-data-url.html:
Added.
* LayoutTests/editing/pasteboard/paste-image-as-data-url-expected.txt: Added.
* LayoutTests/editing/pasteboard/paste-image-as-data-url.html: Copied from
LayoutTests/editing/pasteboard/paste-image-as-blob-url.html.
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/mac-wk2/TestExpectations:
* LayoutTests/platform/mac/TestExpectations:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::dataURLForImageData):
(WebCore::sanitizeMarkupWithArchive):
(WebCore::WebContentReader::readImage):
* Tools/TestWebKitAPI/Tests/ios/DragAndDropTestsIOS.mm:
(TestWebKitAPI::TEST(DragAndDropTests, CanDragImageWhenNotFirstResponder)):
Canonical link: https://commits.webkit.org/309231@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications