Bug 72267 - [GTK][WEBKIT2] Add enable-caret-browsing property to WebKitSettings
Summary: [GTK][WEBKIT2] Add enable-caret-browsing property to WebKitSettings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 72266
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-14 06:29 PST by Mario Sanchez Prada
Modified: 2011-11-15 01:05 PST (History)
6 users (show)

See Also:


Attachments
Patch proposal (8.73 KB, patch)
2011-11-14 07:26 PST, Mario Sanchez Prada
gustavo: commit-queue-
Details | Formatted Diff | Diff
Patch proposal (8.76 KB, patch)
2011-11-14 07:59 PST, Mario Sanchez Prada
gustavo: commit-queue-
Details | Formatted Diff | Diff
Patch proposal (8.76 KB, patch)
2011-11-14 09:08 PST, Mario Sanchez Prada
mrobinson: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Sanchez Prada 2011-11-14 06:29:45 PST
We need this to allow enabling/disabling this mode from WebKit2GTK+ based browsers, as it used to be with WebKit1.

Caret browsing is an important feature rom the accessibility point of view, so the sooner we have this in WebKit2GTK+, the better :-)
Comment 1 Mario Sanchez Prada 2011-11-14 06:30:23 PST
We depend on having proper support for the caretBrowsingEnabled preference in WebKit2 C API.
Comment 2 Mario Sanchez Prada 2011-11-14 07:26:54 PST
Created attachment 114945 [details]
Patch proposal

Patch proposal, assuming bug 72266 has been fixed.
Comment 3 WebKit Review Bot 2011-11-14 07:29:22 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 4 Gustavo Noronha (kov) 2011-11-14 07:41:40 PST
Comment on attachment 114945 [details]
Patch proposal

Attachment 114945 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/10472267
Comment 5 Mario Sanchez Prada 2011-11-14 07:43:31 PST
(In reply to comment #4)
> (From update of attachment 114945 [details])
> Attachment 114945 [details] did not pass gtk-ews (gtk):
> Output: http://queues.webkit.org/results/10472267

Yeah, it doesn't pass since it needs WK2 API that is not available yet. See bug 72267, as soon as it gets fixed this patch should be valid.
Comment 6 Carlos Garcia Campos 2011-11-14 07:52:10 PST
Comment on attachment 114945 [details]
Patch proposal

View in context: https://bugs.webkit.org/attachment.cgi?id=114945&action=review

Looks good to me.

> Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:615
> +    /**
> +    * WebKitSettings:enable-caret-browsing:
> +    *

indentation is wrong here.

> Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:616
> +    * Whether to enable caret browsing mode.

hmm, maybe you could explain a bit what caret browsing means, or use "accessibility enhanced keyboard navigation" here too.
Comment 7 Mario Sanchez Prada 2011-11-14 07:59:27 PST
Created attachment 114949 [details]
Patch proposal

(In reply to comment #6)
> [...]
> > Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:615
> > +    /**
> > +    * WebKitSettings:enable-caret-browsing:
> > +    *
> indentation is wrong here.

Fixed.

> > Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:616
> > +    * Whether to enable caret browsing mode.
> 
> hmm, maybe you could explain a bit what caret browsing means, or use "accessibility enhanced keyboard navigation" here too.

Done.
Comment 8 Gustavo Noronha (kov) 2011-11-14 08:06:27 PST
Comment on attachment 114949 [details]
Patch proposal

Attachment 114949 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/10397238
Comment 9 Mario Sanchez Prada 2011-11-14 09:08:10 PST
Created attachment 114961 [details]
Patch proposal

Resubmitted to force EWS pass again, now that bug 72266 has been fixed
Comment 10 Philippe Normand 2011-11-14 09:59:26 PST
Comment on attachment 114961 [details]
Patch proposal

Looks good to me as well!
Comment 11 Martin Robinson 2011-11-14 10:29:50 PST
Comment on attachment 114961 [details]
Patch proposal

Yaaaaaay! Please verify that this doesn't introduce any new gtkdoc errors before landing by running Source/WebKit2/UIProcess/API/gtk/docs after building. Thanks!
Comment 12 Mario Sanchez Prada 2011-11-15 01:05:51 PST
Committed r100248: <http://trac.webkit.org/changeset/100248>