Skip to content
Permalink
Browse files
TestWebKitAPI: Support ClipboardTests.ReadMultipleItems on Catalyst
https://bugs.webkit.org/show_bug.cgi?id=207501
<rdar://problem/59323414>

Reviewed by Alex Christensen.

* TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm:
(writeMultipleObjectsToPlatformPasteboard): All iOS family ports should have
The same behavior.


Canonical link: https://commits.webkit.org/220512@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
JonWBedard committed Feb 11, 2020
1 parent 871530a commit 8fd76c2ab793b8523f58e11c0d068914105ee9b8
Showing with 13 additions and 1 deletion.
  1. +12 −0 Tools/ChangeLog
  2. +1 −1 Tools/TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm
@@ -1,3 +1,15 @@
2020-02-10 Jonathan Bedard <jbedard@apple.com>

TestWebKitAPI: Support ClipboardTests.ReadMultipleItems on Catalyst
https://bugs.webkit.org/show_bug.cgi?id=207501
<rdar://problem/59323414>

Reviewed by Alex Christensen.

* TestWebKitAPI/Tests/WebKitCocoa/ClipboardTests.mm:
(writeMultipleObjectsToPlatformPasteboard): All iOS family ports should have
The same behavior.

2020-02-10 Alan Sien Wei Hshieh <hshieh@apple.com>

Add a variant of -[WKWebViewPrivate _getContentsAsStringWithCompletionHandler:] that includes contents from subframes
@@ -108,7 +108,7 @@ static void writeMultipleObjectsToPlatformPasteboard()
NSPasteboard *pasteboard = NSPasteboard.generalPasteboard;
[pasteboard clearContents];
[pasteboard writeObjects:@[firstItem.get(), secondItem.get(), thirdItem.get(), fourthItem.get()]];
#elif PLATFORM(IOS)
#elif PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
auto firstItem = adoptNS([[NSItemProvider alloc] initWithObject:@"Hello"]);
auto secondItem = adoptNS([[NSItemProvider alloc] initWithObject:[NSURL URLWithString:@"https://apple.com/"]]);
auto thirdItem = adoptNS([[NSItemProvider alloc] init]);

0 comments on commit 8fd76c2

Please sign in to comment.