RESOLVED FIXED Bug 35351
[GTK] DRT implement execCommand()
https://bugs.webkit.org/show_bug.cgi?id=35351
Summary [GTK] DRT implement execCommand()
Philippe Normand
Reported 2010-02-24 11:24:18 PST
At least editing/execCommand/delete-image-in-anchor.html fails because of that.
Attachments
Patch for this issue (21.40 KB, patch)
2010-07-30 18:53 PDT, Martin Robinson
xan.lopez: review+
Christian Dywan
Comment 1 2010-02-24 12:33:50 PST
See bug 19456 implementing webkit_web_view_execute_command().
Martin Robinson
Comment 2 2010-07-08 13:32:47 PDT
Martin Robinson
Comment 3 2010-07-30 18:53:36 PDT
Created attachment 63136 [details] Patch for this issue
Martin Robinson
Comment 4 2010-07-30 18:54:21 PDT
It seems that the needs of LayoutTestController.execCommand may be slightly different than the the exec_command we want to expose in the public API. I've attached a patch which adds private methods we need for unimplemented DRT functionality. This will at least allow us to pass more tests. Eventually this may be made modified and made public for the editing API.
Christian Dywan
Comment 5 2010-08-01 12:28:56 PDT
(In reply to comment #4) > It seems that the needs of LayoutTestController.execCommand may be slightly different than the the exec_command we want to expose in the public API. I've attached a patch which adds private methods we need for unimplemented DRT functionality. This will at least allow us to pass more tests. Eventually this may be made modified and made public for the editing API. The difference seems to be an additional string value argument. And in hindsight I actually agree this is useful, for instance for insertHTML. I had not considered that when I wrote the existing patch.
Martin Robinson
Comment 6 2010-08-02 09:12:21 PDT
It should be simple to expose this as a public API once we have it in and test it via the DRT then.
Xan Lopez
Comment 7 2010-08-02 14:12:55 PDT
Comment on attachment 63136 [details] Patch for this issue >-bool LayoutTestController::isCommandEnabled(JSStringRef /*name*/) >+void LayoutTestController::setCacheModel(int) > { > // FIXME: implement >- return false; > } So in the ChangeLog you say you are only moving this, but you are also adding a return false. Is it needed or just added by mistake? > >+ Not needed? > void LayoutTestController::setPersistentUserStyleSheetLocation(JSStringRef jsURL) > { > // FIXME: implement Looks good other than that.
Martin Robinson
Comment 8 2010-08-02 19:20:29 PDT
Martin Robinson
Comment 9 2010-08-02 19:37:28 PDT
(In reply to comment #7) > (From update of attachment 63136 [details]) > >-bool LayoutTestController::isCommandEnabled(JSStringRef /*name*/) > >+void LayoutTestController::setCacheModel(int) > > { > > // FIXME: implement > >- return false; > > } > So in the ChangeLog you say you are only moving this, but you are also adding a return false. Is it needed or just added by mistake? I think that's just a case of a slightly confusing diff. In this case, I removed the "return false" in this location and replaced it with the result of webkit_web_view_is_command_enabled above. > >+ > Not needed? Fixed!
Note You need to log in before you can comment on or make changes to this bug.