Bug 31505

Summary: [GTK] Tab key does not cycle through elements by default
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch for this issue
gustavo: review-
Ensure that tab-key-cycles-through-elements is true by default
gustavo: review+, gustavo: commit-queue-
Properly localize tab-key-cycles-through-elements documentation strings
none
Properly localize documentation strings (with Changelog) gustavo: review+, gustavo: commit-queue-

Description Martin Robinson 2009-11-13 21:29:27 PST
This seems to be caused by caused by r50642 ( http://trac.webkit.org/changeset/50642 ).
Comment 1 Martin Robinson 2009-11-13 22:35:55 PST
Created attachment 43222 [details]
Patch for this issue

This problem seems to be the result of a bad merge. I've attached a patch correcting the merge and extending the original insert-tab test to cover this case.
Comment 2 Gustavo Noronha (kov) 2009-11-17 10:20:39 PST
Comment on attachment 43222 [details]
Patch for this issue

> +        el.focus();
> +        if (window.eventSender) {
> +            eventSender.keyDown("\t");
> +        }

Braces.

>          if (window.layoutTestController) {
>              layoutTestController.dumpAsText();
> -            // Set this preference so the tab key will actually insert a tab character- like in Mail.
> +        }

More braces? =)

> +        if (window.layoutTestController) {
>              layoutTestController.setTabKeyCyclesThroughElements(false);
>          }

Ditto. There are some others.

Can you split the test from the translatable strings/param flags?
Comment 3 Martin Robinson 2009-11-17 11:57:15 PST
Created attachment 43374 [details]
Ensure that tab-key-cycles-through-elements is true by default

Thanks for the review. I'm attaching corrected patches now.
Comment 4 Martin Robinson 2009-11-17 11:57:54 PST
Created attachment 43375 [details]
Properly localize tab-key-cycles-through-elements documentation strings
Comment 5 Martin Robinson 2009-11-17 12:43:04 PST
Created attachment 43378 [details]
Properly localize documentation strings (with Changelog)

Forgot the Changelog on the last patch; attaching a corrected patch now.
Comment 6 Gustavo Noronha (kov) 2009-11-18 04:40:42 PST
Comment on attachment 43374 [details]
Ensure that tab-key-cycles-through-elements is true by default

looks good
Comment 7 Gustavo Noronha (kov) 2009-11-18 04:41:19 PST
Comment on attachment 43378 [details]
Properly localize documentation strings (with Changelog)

This one as well.
Comment 8 Gustavo Noronha (kov) 2009-11-18 04:55:21 PST
Comment on attachment 43374 [details]
Ensure that tab-key-cycles-through-elements is true by default

I will land manually, since the bot is down.
Comment 9 Gustavo Noronha (kov) 2009-11-18 04:55:28 PST
Comment on attachment 43378 [details]
Properly localize documentation strings (with Changelog)

I will land manually, since the bot is down.
Comment 10 Gustavo Noronha (kov) 2009-11-18 05:21:00 PST
Landed as r51108, and r51109.