WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
96636
Add runtime flag that enables lang attribute for form controls in LayoutTests
https://bugs.webkit.org/show_bug.cgi?id=96636
Summary
Add runtime flag that enables lang attribute for form controls in LayoutTests
Keishi Hattori
Reported
2012-09-13 05:20:11 PDT
Add feature flag that enables lang attribute for form controls in LayoutTests
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
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Keishi Hattori
Comment 1
2012-09-13 05:26:52 PDT
Created
attachment 163845
[details]
Patch
WebKit Review Bot
Comment 2
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
.
Kent Tamura
Comment 3
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.
Keishi Hattori
Comment 4
2012-09-13 06:30:10 PDT
Created
attachment 163858
[details]
Patch
Kent Tamura
Comment 5
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().
Alexey Proskuryakov
Comment 6
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.
Keishi Hattori
Comment 7
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.
Keishi Hattori
Comment 8
2012-09-13 14:48:50 PDT
Created
attachment 163971
[details]
Patch
Build Bot
Comment 9
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
Build Bot
Comment 10
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
Keishi Hattori
Comment 11
2012-09-13 17:46:59 PDT
Created
attachment 164015
[details]
Patch
Kent Tamura
Comment 12
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.
Build Bot
Comment 13
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
Keishi Hattori
Comment 14
2012-09-13 20:35:26 PDT
Created
attachment 164040
[details]
Patch
Keishi Hattori
Comment 15
2012-09-13 20:36:50 PDT
Created
attachment 164041
[details]
Patch
Kent Tamura
Comment 16
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.
Keishi Hattori
Comment 17
2012-09-13 20:49:05 PDT
Created
attachment 164042
[details]
Patch
Kent Tamura
Comment 18
2012-09-13 21:19:36 PDT
Comment on
attachment 164042
[details]
Patch ok
Kent Tamura
Comment 19
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.
Keishi Hattori
Comment 20
2012-09-14 00:38:35 PDT
Created
attachment 164068
[details]
Patch
WebKit Review Bot
Comment 21
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
WebKit Review Bot
Comment 22
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
>
WebKit Review Bot
Comment 23
2012-09-14 04:11:00 PDT
All reviewed patches have been landed. Closing bug.
Roger Fong
Comment 24
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
Kent Tamura
Comment 25
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.
Roger Fong
Comment 26
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
Kent Tamura
Comment 27
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.
Roger Fong
Comment 28
2012-09-14 12:30:01 PDT
Hmm, well thanks for fixing things! Bots are happy(er) again. Much appreciated.
Roger Fong
Comment 29
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?
Roger Fong
Comment 30
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.
Kent Tamura
Comment 31
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.
Roger Fong
Comment 32
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug