RESOLVED FIXED173238
[iOS DnD] Allow the injected bundle to add client data when writing an image to the pasteboard
https://bugs.webkit.org/show_bug.cgi?id=173238
Summary [iOS DnD] Allow the injected bundle to add client data when writing an image ...
Wenson Hsieh
Reported 2017-06-11 08:49:34 PDT
Attachments
Patch (16.06 KB, patch)
2017-06-11 09:04 PDT, Wenson Hsieh
no flags
Fix GTK build (16.09 KB, patch)
2017-06-11 10:01 PDT, Wenson Hsieh
rniwa: review+
Patch for landing (16.26 KB, patch)
2017-06-12 12:25 PDT, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2017-06-11 09:04:01 PDT
Wenson Hsieh
Comment 2 2017-06-11 10:01:59 PDT
Created attachment 312604 [details] Fix GTK build
Ryosuke Niwa
Comment 3 2017-06-11 18:55:59 PDT
Comment on attachment 312604 [details] Fix GTK build View in context: https://bugs.webkit.org/attachment.cgi?id=312604&action=review > Source/WebKit2/Shared/WebCoreArgumentCoders.cpp:1431 > + encoder << types; We should assert that the size of data & types are the same. > Source/WebKit2/Shared/WebCoreArgumentCoders.cpp:1433 > + for (size_t i = 0; i < data.size(); i++) Why don't we save the size like you did in PlatformPasteboardIOS.mm?
Wenson Hsieh
Comment 4 2017-06-12 08:51:33 PDT
Comment on attachment 312604 [details] Fix GTK build View in context: https://bugs.webkit.org/attachment.cgi?id=312604&action=review Thanks Ryosuke! I think we'll still need a WK2 reviewer to rubberstamp this though, since it touches WebKit2. >> Source/WebKit2/Shared/WebCoreArgumentCoders.cpp:1431 >> + encoder << types; > > We should assert that the size of data & types are the same. Good idea -- added an assert. >> Source/WebKit2/Shared/WebCoreArgumentCoders.cpp:1433 >> + for (size_t i = 0; i < data.size(); i++) > > Why don't we save the size like you did in PlatformPasteboardIOS.mm? Done!
Tim Horton
Comment 5 2017-06-12 11:01:24 PDT
Comment on attachment 312604 [details] Fix GTK build wk2r=me
Wenson Hsieh
Comment 6 2017-06-12 12:25:56 PDT
Created attachment 312684 [details] Patch for landing
WebKit Commit Bot
Comment 7 2017-06-12 13:05:11 PDT
Comment on attachment 312684 [details] Patch for landing Clearing flags on attachment: 312684 Committed r218128: <http://trac.webkit.org/changeset/218128>
Note You need to log in before you can comment on or make changes to this bug.