Bug 24411 - [GTK] Text manipulation undo not working
Summary: [GTK] Text manipulation undo not working
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.networkedmediatank.com/sho...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 15:54 PST by jasneet
Modified: 2017-03-11 10:46 PST (History)
9 users (show)

See Also:


Attachments
Patch (11.09 KB, patch)
2013-02-07 16:21 PST, Seulgi Kim
no flags Details | Formatted Diff | Diff
Patch (6.39 KB, patch)
2013-02-07 19:43 PST, Seulgi Kim
no flags Details | Formatted Diff | Diff
Patch (4.26 KB, patch)
2013-02-07 20:07 PST, Seulgi Kim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jasneet 2009-03-05 15:54:37 PST
I Steps:
1.Go to http://www.networkedmediatank.com/showthread.php?tid=13161&page=last
2.Create an account
3.Go to quick reply section
4.Add some text, select a part of text
5.Press CTRL-X
6.Press CTRL-Z

II Issue: 
Selected part doesn't appear after Ctrl + Z

III Other Browsers:
FF3: OK
IE7: OK 

IV Nightly tested: 41443

Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=7148
Comment 1 Pacho Ramos 2009-07-30 10:17:07 PDT
The same occurs with webkit-gtk-1.1.11 under linux
Comment 2 Seulgi Kim 2013-02-07 15:58:16 PST
I confirmed Gtk WebKit2 on r142157 don't save undoStack since this uses EmptyEditorClient.
Must using EditorClient in WebKit1 or creating new EditorClient for WebKit2.
Comment 3 Seulgi Kim 2013-02-07 16:21:56 PST
Created attachment 187194 [details]
Patch
Comment 4 WebKit Review Bot 2013-02-07 16:26:39 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 5 WebKit Review Bot 2013-02-07 16:26:57 PST
Attachment 187194 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp', u'Source/WebKit2/UIProcess/API/gtk/WebKitWebView.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.messages.in', u'Source/WebKit2/WebProcess/WebPage/gtk/WebPageGtk.cpp']" exit_code: 1
Source/WebKit2/ChangeLog:13:  Line contains tab character.  [whitespace/tab] [5]
WARNING: File exempt from style guide. Skipping: "Source/WebKit2/UIProcess/API/gtk/WebKitWebView.h"
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Seulgi Kim 2013-02-07 16:34:51 PST
Now I just implement CoreIPC messages to send command. I'll do remains soon.
If there is something wrong, please comment.
Comment 7 Martin Robinson 2013-02-07 16:49:56 PST
So we already have webkit_web_view_can_execute_editing_command, which looks like it encompasses all of these. Or am I mistaken?
Comment 8 Seulgi Kim 2013-02-07 19:43:55 PST
Created attachment 187222 [details]
Patch
Comment 9 Seulgi Kim 2013-02-07 19:49:14 PST
(In reply to comment #7)
> So we already have webkit_web_view_can_execute_editing_command, which looks like it encompasses all of these. Or am I mistaken?

You're right. There already exists function to do.
But I think the function name is webkit_web_view_execute_editing_command, instead of webkit_web_view_can_execute_editing_command
Comment 10 Seulgi Kim 2013-02-07 20:07:20 PST
Created attachment 187224 [details]
Patch
Comment 11 Seulgi Kim 2013-02-07 20:10:35 PST
(In reply to comment #10)
> Created an attachment (id=187224) [details]
> Patch

I confirmed that clipboard command messages are sent properly. Fix to bind only undo and redo signals.
Comment 12 Martin Robinson 2013-02-07 21:13:05 PST
Comment on attachment 187224 [details]
Patch

Hrm. So is the issue that Ctrl+Z isn't causing undo to happen? I wonder if this should be hooked in at a different place. Check out webkit_web_view_real_undo from WebKit1. Do we need something like that?