Bug 239319 - [iOS] [WK2] Managed pasteboard should function for all managed domains
Summary: [iOS] [WK2] Managed pasteboard should function for all managed domains
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-13 20:57 PDT by Wenson Hsieh
Modified: 2022-04-14 13:59 PDT (History)
6 users (show)

See Also:


Attachments
For EWS (9.49 KB, patch)
2022-04-13 21:29 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2022-04-13 20:57:24 PDT
rdar://80059355
Comment 1 Wenson Hsieh 2022-04-13 21:29:13 PDT
Created attachment 457593 [details]
For EWS
Comment 2 Kate Cheney 2022-04-14 07:15:32 PDT
Comment on attachment 457593 [details]
For EWS

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

r=me, but it seems like iOS sim might be unhappy.

> Source/WebKit/Platform/spi/ios/UIKitSPI.h:171
> +typedef NS_ENUM(NSInteger, _UIDataOwner) {

Should this also be inside #if HAVE(PASTEBOARD_DATA_OWNER)?
Comment 3 Wenson Hsieh 2022-04-14 09:01:07 PDT
Thanks for the review!

(In reply to Kate Cheney from comment #2)
> Comment on attachment 457593 [details]
> For EWS
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=457593&action=review
> 
> r=me, but it seems like iOS sim might be unhappy.
> 
> > Source/WebKit/Platform/spi/ios/UIKitSPI.h:171
> > +typedef NS_ENUM(NSInteger, _UIDataOwner) {
> 
> Should this also be inside #if HAVE(PASTEBOARD_DATA_OWNER)?

Ah, so it looks like the declaration of _UIDataOwner isn't behind any version (or platform) guards, so I think it's okay to use outside of HAVE(PASTEBOARD_DATA_OWNER). More generally, _UIDataOwner is also used in several other managed data scenarios, e.g. drag-and-drop.

I'm not actually sure why the iOS builder failed: https://ews-build.webkit.org/#/builders/64/builds/15499; there's no error, and the last few lines contains:

```
command timed out: 1200 seconds without output running ['perl', 'Tools/Scripts/build-webkit', '--release', 'ARCHS=x86_64', 'ONLY_ACTIVE_ARCH=NO', '--ios-simulator'], attempting to kill
process killed by signal 9
program finished with exit code -1
```

(I hit the retry button 🤞🏻)
Comment 4 Kate Cheney 2022-04-14 09:03:09 PDT
(In reply to Wenson Hsieh from comment #3)
> Thanks for the review!
> 
> (In reply to Kate Cheney from comment #2)
> > Comment on attachment 457593 [details]
> > For EWS
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=457593&action=review
> > 
> > r=me, but it seems like iOS sim might be unhappy.
> > 
> > > Source/WebKit/Platform/spi/ios/UIKitSPI.h:171
> > > +typedef NS_ENUM(NSInteger, _UIDataOwner) {
> > 
> > Should this also be inside #if HAVE(PASTEBOARD_DATA_OWNER)?
> 
> Ah, so it looks like the declaration of _UIDataOwner isn't behind any
> version (or platform) guards, so I think it's okay to use outside of
> HAVE(PASTEBOARD_DATA_OWNER). More generally, _UIDataOwner is also used in
> several other managed data scenarios, e.g. drag-and-drop.
> 

Makes sense!

> I'm not actually sure why the iOS builder failed:
> https://ews-build.webkit.org/#/builders/64/builds/15499; there's no error,
> and the last few lines contains:
> 
> ```
> command timed out: 1200 seconds without output running ['perl',
> 'Tools/Scripts/build-webkit', '--release', 'ARCHS=x86_64',
> 'ONLY_ACTIVE_ARCH=NO', '--ios-simulator'], attempting to kill
> process killed by signal 9
> program finished with exit code -1
> ```
> 
> (I hit the retry button 🤞🏻)

!! very strange !!
Comment 5 EWS 2022-04-14 13:59:57 PDT
Committed r292888 (249658@main): <https://commits.webkit.org/249658@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 457593 [details].