Bug 87668

Summary: [EFL] Reset "WebKitTabToLinksPreferenceKey" in DumpRenderTreeChrome::resetDefaultsToConsistentValues
Product: WebKit Reporter: Mikhail Pozdnyakov <mikhail.pozdnyakov>
Component: Tools / TestsAssignee: Mikhail Pozdnyakov <mikhail.pozdnyakov>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, gustavo, rakuco, rniwa, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch v2 (corrected changelog)
none
patch v3 (removed EFL related part)
rniwa: review-, rniwa: commit-queue-
patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT)
none
patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT) none

Mikhail Pozdnyakov
Reported 2012-05-28 08:12:13 PDT
LayoutTests/fast/html/tab-order.html has a link inside the test description which may be included in focus chain (if "WebKitTabToLinksPreferenceKey" setting is set) and lead to test failing. So think it would be nice to set to false "WebKitTabToLinksPreferenceKey" LayoutTestController setting before the test execution to avoid the mentioned problem and to be consistent with other tests (take for instance fast/events/tab-focus-anchor.html).
Attachments
patch (1.94 KB, patch)
2012-05-28 08:17 PDT, Mikhail Pozdnyakov
no flags
patch v2 (corrected changelog) (2.15 KB, patch)
2012-05-28 10:24 PDT, Mikhail Pozdnyakov
no flags
patch v3 (removed EFL related part) (1.54 KB, patch)
2012-05-30 06:57 PDT, Mikhail Pozdnyakov
rniwa: review-
rniwa: commit-queue-
patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT) (1.54 KB, patch)
2012-06-04 00:57 PDT, Mikhail Pozdnyakov
no flags
patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT) (3.08 KB, patch)
2012-06-04 01:00 PDT, Mikhail Pozdnyakov
no flags
Mikhail Pozdnyakov
Comment 1 2012-05-28 08:17:47 PDT
Raphael Kubo da Costa (:rakuco)
Comment 2 2012-05-28 09:29:41 PDT
Comment on attachment 144368 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=144368&action=review > LayoutTests/ChangeLog:3 > + [DRT] LayoutTests/fast/html/tab-order.html should set to false "WebKitTabToLinksPreferenceKey" LayoutTestController setting The 'DRT' prefix here seems unnecessary. It'd be good to include your explanation in the ChangeLog.
Mikhail Pozdnyakov
Comment 3 2012-05-28 10:24:17 PDT
Created attachment 144382 [details] patch v2 (corrected changelog)
Mikhail Pozdnyakov
Comment 4 2012-05-28 10:26:21 PDT
(In reply to comment #2) > (From update of attachment 144368 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=144368&action=review > > > LayoutTests/ChangeLog:3 > > + [DRT] LayoutTests/fast/html/tab-order.html should set to false "WebKitTabToLinksPreferenceKey" LayoutTestController setting > > The 'DRT' prefix here seems unnecessary. It'd be good to include your explanation in the ChangeLog. Done.
Gustavo Noronha (kov)
Comment 5 2012-05-29 09:40:19 PDT
Comment on attachment 144382 [details] patch v2 (corrected changelog) Why don't other ports need this? Should this setting be set to a better default when restoring state to sane defaults in EFL's DRT instead?
Mikhail Pozdnyakov
Comment 6 2012-05-30 00:23:49 PDT
(In reply to comment #5) > (From update of attachment 144382 [details]) > Why don't other ports need this? Should this setting be set to a better default when restoring state to sane defaults in EFL's DRT instead? The WebKit EFL problem can be solved if WebKitTabToLinksPreferenceKey is reset to false each time. However think it's sane to set it also inside the test since this setting is crucial for the test and its necessity is known beforehand (I mean this is not the same as uncleaned cache or forgotten user script -- those things must be handled in DRT) BTW other tests set it (see example in the description of this bug). I will remove the EFL specific part from the patch.
Mikhail Pozdnyakov
Comment 7 2012-05-30 06:57:07 PDT
Created attachment 144801 [details] patch v3 (removed EFL related part)
Alexey Proskuryakov
Comment 8 2012-05-30 10:04:37 PDT
I agree with Gustavo - it's wrong to rely on a test to reset preferences to original state itself. Very few tests do that.
Ryosuke Niwa
Comment 9 2012-06-01 00:20:06 PDT
Comment on attachment 144801 [details] patch v3 (removed EFL related part) View in context: https://bugs.webkit.org/attachment.cgi?id=144801&action=review > LayoutTests/fast/html/tab-order.html:5 > + if (window.layoutTestController) > + layoutTestController.overridePreference('WebKitTabToLinksPreferenceKey', false); This should be done in http://trac.webkit.org/browser/trunk/Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp#L205.
Mikhail Pozdnyakov
Comment 10 2012-06-04 00:57:14 PDT
Created attachment 145530 [details] patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT)
Mikhail Pozdnyakov
Comment 11 2012-06-04 01:00:55 PDT
Created attachment 145532 [details] patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT)
WebKit Review Bot
Comment 12 2012-06-04 02:28:51 PDT
Comment on attachment 145532 [details] patch v4 (reset "WebKitTabToLinksPreferenceKey" to false in EFL DRT) Clearing flags on attachment: 145532 Committed r119377: <http://trac.webkit.org/changeset/119377>
WebKit Review Bot
Comment 13 2012-06-04 02:28:57 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.