Bug 234065

Summary: Add a way to write a `SharedBuffer` to the Pasteboard
Product: WebKit Reporter: Devin Rousso <hi>
Component: New BugsAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, hi, megan_gardner, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 191379    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Description Devin Rousso 2021-12-08 19:38:43 PST
.
Comment 1 Devin Rousso 2021-12-08 19:52:09 PST
Created attachment 446490 [details]
Patch
Comment 2 Devin Rousso 2021-12-08 20:45:44 PST
Created attachment 446496 [details]
Patch
Comment 3 Wenson Hsieh 2021-12-08 22:13:18 PST
Comment on attachment 446496 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=446496&action=review

> Source/WebCore/platform/ios/PlatformPasteboardIOS.mm:553
> +#if !PLATFORM(MACCATALYST)
> +    [representationsToRegister addData:[webIOSPastePboardType dataUsingEncoding:NSUTF8StringEncoding] forType:webIOSPastePboardType];
> +#endif

I'm not sure why we need to preserve this bit of "history" in modern code.

That said, this iOS-specific code is not going to be exercised by anything, right? If that's the case, should we just leave it as a method stub?
Comment 4 Devin Rousso 2021-12-09 16:10:04 PST
Created attachment 446626 [details]
Patch
Comment 5 EWS 2021-12-10 11:04:12 PST
Committed r286861 (245094@main): <https://commits.webkit.org/245094@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446626 [details].
Comment 6 Radar WebKit Bug Importer 2021-12-10 11:05:19 PST
<rdar://problem/86330756>