Bug 133782

Summary: [WK2][EFL] Implement text selection range and url's copy and paste through EFL MiniBrowser Context Menu
Product: WebKit Reporter: Joonghun Park <jh718.park>
Component: WebKit EFLAssignee: Joonghun Park <jh718.park>
Status: RESOLVED WONTFIX    
Severity: Normal CC: buildbot, cdumez, cgarcia, gyuyoung.kim, hh.kaka, lucas.de.marchi, mcatanzaro, mrobinson, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2
none
Patch
none
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
none
Patch
none
Patch
none
<WIP>
none
Patch
none
Patch
none
Patch
none
Use PasteboardHelper instead of Efl specific clipboard temporarily
none
Remove redundant std::unique_ptr<Pasteboard> from Editor.h
none
Use BSD license in added files achristensen: review-

Joonghun Park
Reported 2014-06-11 21:19:51 PDT
By adding dataobjectEfl and ArgumentCodersEfl, text selection range and url data transmission between uiprocess and webprocess is supported. These are the base part for implementation of Drag & Drop in EFL port, also.
Attachments
Patch (30.01 KB, patch)
2014-06-11 21:36 PDT, Joonghun Park
no flags
Patch (21.45 KB, patch)
2014-06-13 00:57 PDT, Joonghun Park
no flags
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (822.68 KB, application/zip)
2014-06-13 03:38 PDT, Build Bot
no flags
Patch (20.36 KB, patch)
2014-06-18 01:13 PDT, Joonghun Park
no flags
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (592.31 KB, application/zip)
2014-06-18 11:00 PDT, Build Bot
no flags
Patch (20.36 KB, patch)
2014-06-18 22:34 PDT, Joonghun Park
no flags
Patch (33.03 KB, patch)
2014-07-07 04:27 PDT, Joonghun Park
no flags
<WIP> (34.36 KB, patch)
2014-11-02 16:47 PST, Joonghun Park
no flags
Patch (34.84 KB, patch)
2014-11-02 23:23 PST, Joonghun Park
no flags
Patch (34.61 KB, patch)
2015-10-21 05:06 PDT, Joonghun Park
no flags
Patch (34.71 KB, patch)
2015-10-21 07:22 PDT, Joonghun Park
no flags
Use PasteboardHelper instead of Efl specific clipboard temporarily (37.63 KB, patch)
2015-10-22 00:21 PDT, Joonghun Park
no flags
Remove redundant std::unique_ptr<Pasteboard> from Editor.h (36.80 KB, patch)
2015-10-22 00:34 PDT, Joonghun Park
no flags
Use BSD license in added files (38.55 KB, patch)
2015-10-23 01:24 PDT, Joonghun Park
achristensen: review-
Joonghun Park
Comment 1 2014-06-11 21:36:13 PDT
Joonghun Park
Comment 2 2014-06-13 00:57:30 PDT
Build Bot
Comment 3 2014-06-13 03:38:47 PDT
Comment on attachment 233031 [details] Patch Attachment 233031 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5550063291990016 New failing tests: media/W3C/video/networkState/networkState_during_loadstart.html
Build Bot
Comment 4 2014-06-13 03:38:49 PDT
Created attachment 233038 [details] Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-12 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Joonghun Park
Comment 5 2014-06-18 01:13:48 PDT
Build Bot
Comment 6 2014-06-18 11:00:45 PDT
Comment on attachment 233294 [details] Patch Attachment 233294 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/6100438118039552 New failing tests: media/W3C/video/networkState/networkState_during_loadstart.html
Build Bot
Comment 7 2014-06-18 11:00:48 PDT
Created attachment 233315 [details] Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Joonghun Park
Comment 8 2014-06-18 22:34:41 PDT
Gyuyoung Kim
Comment 9 2014-06-23 18:41:45 PDT
Comment on attachment 233351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=233351&action=review This patch is almost copied from GTK implementation. So, please consider my suggestion. So, r- > Source/WebCore/ChangeLog:4 > + Need the bug URL (OOPS!). Remove this template. > Source/WebCore/ChangeLog:7 > + Missing patch description. > Source/WebCore/platform/efl/DataObjectEfl.cpp:4 > + This library is free software; you can redistribute it and/or Use BSD instead of LGPL license. > Source/WebCore/platform/efl/DataObjectEfl.h:20 > +#ifndef DataObjectEfl_h It looks DataObjectGtk.h/cpp files are almost same with DataObjectGtk.h/cpp. In this case, you have to add *original author* in Licence. Besides I think we can share common functions with GTK port. So, we may make DataObject.h/cpp to be shared by GTK and EFL. Then, we make DataObjectGtk.h/cpp and DataObjectEfl.h/cpp to support port specific implementation.
Joonghun Park
Comment 10 2014-07-07 04:27:47 PDT
Joonghun Park
Comment 11 2014-11-02 16:47:37 PST
Chris Dumez
Comment 12 2014-11-02 16:54:52 PST
FYI, the correct way I believe is to remove the review flag, not r- your own patches.
Joonghun Park
Comment 13 2014-11-02 22:17:57 PST
(In reply to comment #12) > FYI, the correct way I believe is to remove the review flag, not r- your own > patches. I revised review flag according to your advice. Thank you for your kindness~ :)
Joonghun Park
Comment 14 2014-11-02 23:23:11 PST
Gyuyoung Kim
Comment 15 2014-11-03 01:56:05 PST
Comment on attachment 240828 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240828&action=review I think this patch needs to be reviewed further. I add GTK reviewers as well. > Source/WebCore/editing/Editor.cpp:1312 > + m_pasteboard = Pasteboard::createForCopyAndPaste(); We should not have EFL specific code path as much as possible. In this case, it looks we can use exist code path. Why do we need to have own code path ? > Source/WebCore/editing/Editor.cpp:1333 > + m_pasteboard = Pasteboard::createForCopyAndPaste(); Why should EFL port take different path ? Can't we implement writeSelectionToPasteboard() in EditorEfl.cpp ? void Editor::writeSelectionToPasteboard(Pasteboard&) { notImplemented(); } > Source/WebCore/editing/Editor.cpp:1347 > +#if PLATFORM(EFL) It looks it would be nicer to implement EFL specific function in EditorEfl.cpp. To do that, you need to add EditorEfl.h and declare needed function to virtual. > Source/WebCore/editing/Editor.h:536 > + OwnPtr<Pasteboard> m_pasteboard; // FIXME: This is temporary. It should be removed by using system clipboard. Use std::unique_ptr<> > Source/WebCore/platform/DataObject.h:52 > + bool hasImage() const { return !m_image.isEmpty(); } bool hasImage() should be declared as virtual. Then own DataObject file should override this function. > Source/WebCore/platform/DataObject.h:59 > + void clearImage() { m_image = ""; } ditto. > Source/WebCore/platform/efl/DataObjectEfl.cpp:23 > +#if PLATFORM(EFL) Looks unneeded guard.
Joonghun Park
Comment 16 2015-10-21 05:06:15 PDT
Joonghun Park
Comment 17 2015-10-21 07:22:34 PDT
Joonghun Park
Comment 18 2015-10-22 00:21:37 PDT
Created attachment 263800 [details] Use PasteboardHelper instead of Efl specific clipboard temporarily
Joonghun Park
Comment 19 2015-10-22 00:34:00 PDT
Created attachment 263803 [details] Remove redundant std::unique_ptr<Pasteboard> from Editor.h
Gyuyoung Kim
Comment 20 2015-10-22 23:43:04 PDT
Comment on attachment 263803 [details] Remove redundant std::unique_ptr<Pasteboard> from Editor.h View in context: https://bugs.webkit.org/attachment.cgi?id=263803&action=review Basically this change should be granted by GTK reviewers. Then we can go ahead to review. Please talk with GTK reviewer first. BTW is there any tests for copy & paste ? > Source/WebCore/platform/efl/PasteboardHelper.h:4 > + This library is free software; you can redistribute it and/or Use BSD license.
Joonghun Park
Comment 21 2015-10-22 23:56:17 PDT
(In reply to comment #20) > Comment on attachment 263803 [details] > Remove redundant std::unique_ptr<Pasteboard> from Editor.h > > View in context: > https://bugs.webkit.org/attachment.cgi?id=263803&action=review > > Basically this change should be granted by GTK reviewers. Then we can go > ahead to review. Please talk with GTK reviewer first. BTW is there any tests > for copy & paste ? > > > Source/WebCore/platform/efl/PasteboardHelper.h:4 > > + This library is free software; you can redistribute it and/or > > Use BSD license. Ok, I got it. Regarding the tests, let me check for it. For now, I will change the license as you commented.
Joonghun Park
Comment 22 2015-10-23 01:24:17 PDT
Created attachment 263913 [details] Use BSD license in added files
Alex Christensen
Comment 23 2017-03-03 08:36:01 PST
Comment on attachment 263913 [details] Use BSD license in added files EFL port was removed. If this refactoring is still helpful for maintaining a downstream port, please upload a patch that does the refactoring without adding EFL code.
Michael Catanzaro
Comment 24 2017-03-11 10:41:49 PST
Closing this bug because the EFL port has been removed from trunk. If you feel this bug applies to a different upstream WebKit port and was closed in error, please either update the title and reopen the bug, or leave a comment to request this.
Note You need to log in before you can comment on or make changes to this bug.