Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[macOS 13] Share Sheet header displays a generic icon and is missing …
…a title when sharing an image https://bugs.webkit.org/show_bug.cgi?id=245790 rdar://99706364 Reviewed by Tim Horton. On macOS 13, the Share Sheet has a header representing the content being shared. WebKit is currently not providing any preview information when sharing an image, resulting in a generic icon and missing title in the header. To fix, provide an `NSPreviewRepresentingActivityItem` to the Share Sheet when an image is being shared. * Source/WTF/wtf/PlatformHave.h: * Source/WebCore/en.lproj/Localizable.strings: * Source/WebKit/Shared/WebHitTestResultData.cpp: (WebKit::WebHitTestResultData::WebHitTestResultData): Use the "title" attribute to provide a title for the preview. If a title is missing, use the alt text instead. (WebKit::WebHitTestResultData::encode const): (WebKit::WebHitTestResultData::decode): * Source/WebKit/Shared/WebHitTestResultData.h: * Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm: (WebKit::WebContextMenuProxyMac::getShareMenuItem): If no title is available from the web content, fallback to using a generic title. Canonical link: https://commits.webkit.org/254976@main
- Loading branch information
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters