RESOLVED FIXED 55792
Add plumbing for paste support to ChromiumDataObject::types()
https://bugs.webkit.org/show_bug.cgi?id=55792
Summary Add plumbing for paste support to ChromiumDataObject::types()
Daniel Cheng
Reported 2011-03-04 14:40:24 PST
Don't return "Files" from ChromiumDataObject::types()
Attachments
Patch (4.90 KB, patch)
2011-03-04 14:58 PST, Daniel Cheng
no flags
Patch (4.90 KB, patch)
2011-03-04 15:26 PST, Daniel Cheng
no flags
Patch (8.07 KB, patch)
2011-03-05 18:13 PST, Daniel Cheng
no flags
Patch (9.05 KB, patch)
2011-03-07 12:00 PST, Daniel Cheng
no flags
Patch (9.05 KB, patch)
2011-03-07 12:12 PST, Daniel Cheng
tony: review+
Daniel Cheng
Comment 1 2011-03-04 14:58:07 PST
WebKit Review Bot
Comment 2 2011-03-04 15:06:11 PST
Tony Chang
Comment 3 2011-03-04 15:21:42 PST
Comment on attachment 84806 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=84806&action=review mostly just style nits > Source/WebCore/platform/chromium/ChromiumDataObject.cpp:-104 > - // This is currently broken for pasteboard events, and always has been. Can we write a layout test for this? > Source/WebCore/platform/chromium/ChromiumDataObject.cpp:111 > + results = PlatformBridge::clipboardReadAvailableTypes(PasteboardPrivate::StandardBuffer, > + &ignoredContainsFilenames); > + } else { > + if (!m_plainText.isEmpty()) { Nit: You could just early return in the CopyAndPaste case to avoid having to indent/reformat this. > Source/WebCore/platform/chromium/ChromiumDataObject.cpp:232 > + if (m_clipboardType == Clipboard::CopyAndPaste) The if part needs {} because the body is more than 1 line. > Source/WebCore/platform/chromium/ClipboardChromium.cpp:136 > + results.add("Files"); Should we put this in ClipboardMimeTypes? The other elements in results are mime types, right?
Daniel Cheng
Comment 4 2011-03-04 15:26:07 PST
Daniel Cheng
Comment 5 2011-03-05 18:13:47 PST
WebKit Review Bot
Comment 6 2011-03-05 18:16:03 PST
Attachment 84883 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/edit..." exit_code: 1 Source/WebCore/platform/chromium/ChromiumDataObject.cpp:238: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Daniel Cheng
Comment 7 2011-03-05 18:17:20 PST
(In reply to comment #3) > (From update of attachment 84806 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=84806&action=review > > mostly just style nits > > > Source/WebCore/platform/chromium/ChromiumDataObject.cpp:-104 > > - // This is currently broken for pasteboard events, and always has been. > > Can we write a layout test for this? > Done, though this change is now blocked on http://codereview.chromium.org/6635003. > > Source/WebCore/platform/chromium/ChromiumDataObject.cpp:111 > > + results = PlatformBridge::clipboardReadAvailableTypes(PasteboardPrivate::StandardBuffer, > > + &ignoredContainsFilenames); > > + } else { > > + if (!m_plainText.isEmpty()) { > > Nit: You could just early return in the CopyAndPaste case to avoid having to indent/reformat this. > Done. > > Source/WebCore/platform/chromium/ChromiumDataObject.cpp:232 > > + if (m_clipboardType == Clipboard::CopyAndPaste) > > The if part needs {} because the body is more than 1 line. > I did that but the style checker complained. > > Source/WebCore/platform/chromium/ClipboardChromium.cpp:136 > > + results.add("Files"); > > Should we put this in ClipboardMimeTypes? The other elements in results are mime types, right? Done.
Tony Chang
Comment 8 2011-03-07 08:59:58 PST
Comment on attachment 84883 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=84883&action=review Please fix the style nit before landing. >> Source/WebCore/platform/chromium/ChromiumDataObject.cpp:238 >> + } > > One line control clauses should not use braces. [whitespace/braces] [4] The if should have {}, but the else shouldn't.
Daniel Cheng
Comment 9 2011-03-07 11:48:59 PST
Daniel Cheng
Comment 10 2011-03-07 12:00:41 PST
Daniel Cheng
Comment 11 2011-03-07 12:09:05 PST
I reverted the change since I forgot to include the DEPS roll.
Daniel Cheng
Comment 12 2011-03-07 12:12:07 PST
WebKit Review Bot
Comment 13 2011-03-07 12:33:52 PST
Daniel Cheng
Comment 14 2011-03-07 13:32:25 PST
WebKit Review Bot
Comment 15 2011-03-07 14:09:55 PST
http://trac.webkit.org/changeset/80493 might have broken Qt Linux Release The following tests are not passing: editing/pasteboard/onpaste-text-html-types.html
Ryosuke Niwa
Comment 16 2011-03-07 20:04:14 PST
It seems like the test added by this patch has been failing on Qt. Could you look into it? http://build.webkit.org/builders/Qt%20Linux%20Release/builds/29419
Tony Chang
Comment 17 2011-03-08 09:43:13 PST
(In reply to comment #16) > It seems like the test added by this patch has been failing on Qt. > > Could you look into it? http://build.webkit.org/builders/Qt%20Linux%20Release/builds/29419 Looks like dcheng updated the qt and win Skipped list in http://trac.webkit.org/changeset/80531 .
Note You need to log in before you can comment on or make changes to this bug.