Bug 203021

Summary: [Clipboard API] Support navigator.clipboard.read()
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: HTML EditingAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, cdumez, commit-queue, darin, ews-watchlist, megan_gardner, rniwa, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews213 for win-future
none
For EWS
commit-queue: commit-queue-
Archive of layout-test-results from webkit-cq-01 for mac-highsierra none

Wenson Hsieh
Reported 2019-10-15 19:12:33 PDT
More work in progress. This should unlock the ability to asynchronously fetch pasted content from the clipboard as ClipboardItems, via the Clipboard API.
Attachments
Patch (53.45 KB, patch)
2019-10-17 13:48 PDT, Wenson Hsieh
no flags
Archive of layout-test-results from ews213 for win-future (13.88 MB, application/zip)
2019-10-17 15:05 PDT, EWS Watchlist
no flags
For EWS (58.22 KB, patch)
2019-10-17 16:35 PDT, Wenson Hsieh
commit-queue: commit-queue-
Archive of layout-test-results from webkit-cq-01 for mac-highsierra (3.46 MB, application/zip)
2019-10-17 23:25 PDT, WebKit Commit Bot
no flags
Wenson Hsieh
Comment 1 2019-10-17 13:48:21 PDT Comment hidden (obsolete)
Ryosuke Niwa
Comment 2 2019-10-17 14:07:49 PDT
Comment on attachment 381222 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381222&action=review > Source/WebCore/Modules/async-clipboard/Clipboard.cpp:112 > + if (itemInfo.changeCount != changeCountAtStart) { This change count check should really be happening in the UI process side but it's okay for now.
EWS Watchlist
Comment 3 2019-10-17 15:05:55 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 4 2019-10-17 15:05:57 PDT Comment hidden (obsolete)
Wenson Hsieh
Comment 5 2019-10-17 15:57:50 PDT
Comment on attachment 381222 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381222&action=review >> Source/WebCore/Modules/async-clipboard/Clipboard.cpp:112 >> + if (itemInfo.changeCount != changeCountAtStart) { > > This change count check should really be happening in the UI process side but it's okay for now. Indeed — I’m planning to implement UI-process-side changeCount checking in a subsequent patch. I’ll add a FIXME here for now.
Wenson Hsieh
Comment 6 2019-10-17 16:35:22 PDT
WebKit Commit Bot
Comment 7 2019-10-17 22:21:17 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 8 2019-10-17 22:21:35 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 9 2019-10-17 23:07:54 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 10 2019-10-17 23:08:06 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 11 2019-10-17 23:25:56 PDT
Comment on attachment 381247 [details] For EWS Rejecting attachment 381247 [details] from commit-queue. New failing tests: fast/events/resize-subframe-in-rendering-update.html inspector/console/webcore-logging.html Full output: https://webkit-queues.webkit.org/results/13146169
WebKit Commit Bot
Comment 12 2019-10-17 23:25:58 PDT Comment hidden (obsolete)
Wenson Hsieh
Comment 13 2019-10-18 07:24:51 PDT
The CQ test failures (fast/events/resize-subframe-in-rendering-update.html and inspector/console/webcore-logging.html) are unrelated. Committed: https://trac.webkit.org/r251279.
Radar WebKit Bug Importer
Comment 14 2019-10-18 07:25:22 PDT
Darin Adler
Comment 15 2019-10-18 14:19:01 PDT
Comment on attachment 381247 [details] For EWS View in context: https://bugs.webkit.org/attachment.cgi?id=381247&action=review > Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:38 > +#import <WebCore/LegacyNSPasteboardTypes.h> Seems like this is left over from before you did some refactoring and isn’t needed.
Wenson Hsieh
Comment 16 2019-10-18 14:25:27 PDT
Comment on attachment 381247 [details] For EWS View in context: https://bugs.webkit.org/attachment.cgi?id=381247&action=review >> Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.mm:38 >> +#import <WebCore/LegacyNSPasteboardTypes.h> > > Seems like this is left over from before you did some refactoring and isn’t needed. Good catch! Removing it now.
Note You need to log in before you can comment on or make changes to this bug.