Bug 96636 - Add runtime flag that enables lang attribute for form controls in LayoutTests
Summary: Add runtime flag that enables lang attribute for form controls in LayoutTests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keishi Hattori
URL:
Keywords:
Depends on:
Blocks: 96351
  Show dependency treegraph
 
Reported: 2012-09-13 05:20 PDT by Keishi Hattori
Modified: 2012-11-05 18:08 PST (History)
12 users (show)

See Also:


Attachments
Patch (6.32 KB, patch)
2012-09-13 05:26 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (7.47 KB, patch)
2012-09-13 06:30 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (6.16 KB, patch)
2012-09-13 14:48 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (7.15 KB, patch)
2012-09-13 17:46 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (11.58 KB, patch)
2012-09-13 20:35 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (11.58 KB, patch)
2012-09-13 20:36 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (10.96 KB, patch)
2012-09-13 20:49 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff
Patch (11.05 KB, patch)
2012-09-14 00:38 PDT, Keishi Hattori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keishi Hattori 2012-09-13 05:20:11 PDT
Add feature flag that enables lang attribute for form controls in LayoutTests
Comment 1 Keishi Hattori 2012-09-13 05:26:52 PDT
Created attachment 163845 [details]
Patch
Comment 2 WebKit Review Bot 2012-09-13 05:29:29 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 Kent Tamura 2012-09-13 05:40:58 PDT
Comment on attachment 163845 [details]
Patch

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

> Source/WebCore/ChangeLog:13
> +        (WebCore::RuntimeEnabledFeatures::langAttributeForFormControlsEnabled):

This name doesn't explain the feature well.
Form controls can have lang attributes even now.
It enabled lang-attribute-aware-form-control-UI, right?

> Source/WebKit/chromium/public/WebRuntimeFeatures.h:165
> +    WEBKIT_EXPORT static void enableLangAttributeForFormControls(bool);
> +    WEBKIT_EXPORT static bool isLangAttributeForFormControlsEnabled();

I prefer enabling the feature in InternalSettings to in public WebKit API because this feature is for testing.
Comment 4 Keishi Hattori 2012-09-13 06:30:10 PDT
Created attachment 163858 [details]
Patch
Comment 5 Kent Tamura 2012-09-13 06:55:14 PDT
Comment on attachment 163858 [details]
Patch

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

> Source/WebKit/chromium/ChangeLog:13
> +        * public/WebRuntimeFeatures.h:
> +        (WebRuntimeFeatures):
> +        * src/WebRuntimeFeatures.cpp:
> +        (WebKit::WebRuntimeFeatures::enableLangAttributeForFormControls):
> +        (WebKit):
> +        (WebKit::WebRuntimeFeatures::isLangAttributeAwareFormControlUIEnabled):

These changes are not needed any more.

> Source/WebCore/testing/InternalSettings.cpp:649
> +    UNUSED_PARAM(ec);

So, you don't need to specify rases(DOMException) in the IDL.

> Source/WebCore/testing/InternalSettings.cpp:651
> +}

You need to update InternalSettings::Backup::Backup() and restoreTo().
Comment 6 Alexey Proskuryakov 2012-09-13 10:12:33 PDT
Comment on attachment 163858 [details]
Patch

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

> Source/WebCore/ChangeLog:3
> +        Add feature flag that enables lang attribute aware form controls UI in LayoutTests

Do we call these "feature flags"? The title of the bug made me think of an ENABLE macro.
Comment 7 Keishi Hattori 2012-09-13 14:37:35 PDT
(In reply to comment #6)
> Do we call these "feature flags"? The title of the bug made me think of an ENABLE macro.
I'm sorry. Past change logs seem to call it the runtime flag.
Comment 8 Keishi Hattori 2012-09-13 14:48:50 PDT
Created attachment 163971 [details]
Patch
Comment 9 Build Bot 2012-09-13 15:09:41 PDT
Comment on attachment 163971 [details]
Patch

Attachment 163971 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/13841503
Comment 10 Build Bot 2012-09-13 16:20:34 PDT
Comment on attachment 163971 [details]
Patch

Attachment 163971 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/13841527
Comment 11 Keishi Hattori 2012-09-13 17:46:59 PDT
Created attachment 164015 [details]
Patch
Comment 12 Kent Tamura 2012-09-13 17:54:59 PDT
Comment on attachment 164015 [details]
Patch

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

> Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h:264
> +    static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLangAttributeAwareFormControlUIEnabled = isEnabled; }

Please add a warning comment that this should be enabled only for testing.
Comment 13 Build Bot 2012-09-13 18:48:31 PDT
Comment on attachment 164015 [details]
Patch

Attachment 164015 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/13852247
Comment 14 Keishi Hattori 2012-09-13 20:35:26 PDT
Created attachment 164040 [details]
Patch
Comment 15 Keishi Hattori 2012-09-13 20:36:50 PDT
Created attachment 164041 [details]
Patch
Comment 16 Kent Tamura 2012-09-13 20:42:39 PDT
Comment on attachment 164041 [details]
Patch

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

> Source/WebCore/platform/text/LocaleWin.h:-97
> -    Vector<String> m_shortMonthLabels;
> -    Vector<String> m_monthLabels;
>  #if ENABLE(CALENDAR_PICKER)
> -    Vector<String> m_weekDayShortLabels;

This part looks unrelated to this bug.
Comment 17 Keishi Hattori 2012-09-13 20:49:05 PDT
Created attachment 164042 [details]
Patch
Comment 18 Kent Tamura 2012-09-13 21:19:36 PDT
Comment on attachment 164042 [details]
Patch

ok
Comment 19 Kent Tamura 2012-09-13 21:20:22 PDT
Comment on attachment 164042 [details]
Patch

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

> Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h:264
> +    static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLangAttributeAwareFormControlUIEnabled = isEnabled; }

Please add a warning here.
Comment 20 Keishi Hattori 2012-09-14 00:38:35 PDT
Created attachment 164068 [details]
Patch
Comment 21 WebKit Review Bot 2012-09-14 03:43:00 PDT
Comment on attachment 164068 [details]
Patch

Rejecting attachment 164068 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

ERROR: /mnt/git/webkit-commit-queue/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/13850476
Comment 22 WebKit Review Bot 2012-09-14 04:10:56 PDT
Comment on attachment 164068 [details]
Patch

Clearing flags on attachment: 164068

Committed r128583: <http://trac.webkit.org/changeset/128583>
Comment 23 WebKit Review Bot 2012-09-14 04:11:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 24 Roger Fong 2012-09-14 10:03:21 PDT
Hello,
Currently there are one of two revisions that are causing the Windows test bots to exit early after 20 crashes. This is one possible candidate. 

Can you see if this would have caused a large quantity of accessibility tests on Windows 7 to start failing all of a sudden? The Windows bots have suddenly gotten into a terrible state so if you could verify this quickly I'd be greatly appreciative.

Thanks
Comment 25 Kent Tamura 2012-09-14 10:20:00 PDT
(In reply to comment #24)
> Hello,
> Currently there are one of two revisions that are causing the Windows test bots to exit early after 20 crashes. This is one possible candidate. 
> 
> Can you see if this would have caused a large quantity of accessibility tests on Windows 7 to start failing all of a sudden? The Windows bots have suddenly gotten into a terrible state so if you could verify this quickly I'd be greatly appreciative.
> 
> Thanks

Roger,

It seems the change in this bug was the trigger.
http://build.webkit.org/results/Apple%20Win%20XP%20Debug%20(Tests)/r128619%20(44630)/accessibility/accessibility-node-memory-management-crash-log.txt

I'm not sure why Windows crashes at such code.  I'm investigating.
Comment 26 Roger Fong 2012-09-14 10:28:44 PDT
My test log indicates that the 20 crashes started sometime between
128583 and 128585

128585	#36257	Sep 14 04:23
Build successful	#27689	Sep 14 04:41
Failed exiting early after 20 crashes, 0 web process crashes, and 0 timeouts. 20 tests run. 20 test cases (100%) crashed 1 unit tests failed or timed out webkitpy-test

128584	#36256	Sep 14 04:19
Build successful		

128583	#36255	Sep 14 04:11
Build successful	#27688	Sep 14 04:20
Failed layout-test 1 unit tests failed or timed out 3 python tests failed

128581	#36254	Sep 14 03:58
Build successful	#27687	Sep 14 04:02
Failed 66 test cases (<1%) had incorrect layout 3 test cases (<1%) timed out 1 unit tests failed or timed out 3 python tests failed
Comment 27 Kent Tamura 2012-09-14 11:05:41 PDT
We successfully avoided the Windows issue by http://trac.webkit.org/changeset/128629 though I don't understand the root cause yet.
Comment 28 Roger Fong 2012-09-14 12:30:01 PDT
Hmm, well thanks for fixing things!
Bots are happy(er) again. Much appreciated.
Comment 29 Roger Fong 2012-11-05 12:34:24 PST
Hi, Apple Windows port is broken again (although only when running DRT locally) and the workaround seems to have been removed...can I add it back in?
Comment 30 Roger Fong 2012-11-05 13:28:22 PST
(In reply to comment #29)
> Hi, Apple Windows port is broken again (although only when running DRT locally) and the workaround seems to have been removed...can I add it back in?

Work around was removed in a later patch in favor of a patch that theoretically fixed things on Windows, but unfortunately not when run locally. Continuing my investigation in appropriate bug.
Comment 31 Kent Tamura 2012-11-05 17:08:46 PST
(In reply to comment #30)
> (In reply to comment #29)
> > Hi, Apple Windows port is broken again (although only when running DRT locally) and the workaround seems to have been removed...can I add it back in?
> 
> Work around was removed in a later patch in favor of a patch that theoretically fixed things on Windows, but unfortunately not when run locally. Continuing my investigation in appropriate bug.

Have you never tried local DRT after http://trac.webkit.org/changeset/128850  ?
Anyway, please file another bug.
Comment 32 Roger Fong 2012-11-05 18:08:12 PST
Apparently not. 
I was working on stuff that didn't require me to use it for a while. 
It's also running fine on the test bots, so I didn't think anything was going wrong until just recently.