Bug 154247

Summary: HTMLFormElement.autocomplete should only return known values
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: BindingsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, darin, ggaren, rniwa, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://html.spec.whatwg.org/multipage/forms.html#dom-form-autocomplete
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews103 for mac-yosemite
none
Archive of layout-test-results from ews105 for mac-yosemite-wk2
none
Archive of layout-test-results from ews116 for mac-yosemite
none
Patch none

Comment 1 Radar WebKit Bug Importer 2016-02-15 10:38:32 PST
<rdar://problem/24658195>
Comment 2 Chris Dumez 2016-02-19 14:59:36 PST
Created attachment 271809 [details]
Patch
Comment 3 Ryosuke Niwa 2016-02-19 15:13:14 PST
Comment on attachment 271809 [details]
Patch

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

> Source/WebCore/html/HTMLFormElement.cpp:872
> +const AtomicString& HTMLFormElement::autocomplete() const
> +{
> +    static NeverDestroyed<const AtomicString> on("on", AtomicString::ConstructFromLiteral);
> +    static NeverDestroyed<const AtomicString> off("off", AtomicString::ConstructFromLiteral);
> +

Why don't we just return String so that we don't have to construct these AtomicString's.
Comment 4 Build Bot 2016-02-19 15:51:59 PST
Comment on attachment 271809 [details]
Patch

Attachment 271809 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/856274

New failing tests:
fast/forms/autocomplete.html
Comment 5 Build Bot 2016-02-19 15:52:02 PST
Created attachment 271812 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-02-19 15:57:22 PST
Comment on attachment 271809 [details]
Patch

Attachment 271809 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/856276

New failing tests:
fast/forms/autocomplete.html
Comment 7 Build Bot 2016-02-19 15:57:26 PST
Created attachment 271813 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-02-19 16:04:06 PST
Comment on attachment 271809 [details]
Patch

Attachment 271809 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/856277

New failing tests:
fast/forms/autocomplete.html
Comment 9 Build Bot 2016-02-19 16:04:11 PST
Created attachment 271814 [details]
Archive of layout-test-results from ews116 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 10 Chris Dumez 2016-02-19 16:08:17 PST
Created attachment 271815 [details]
Patch
Comment 11 Chris Dumez 2016-02-19 16:09:07 PST
Comment on attachment 271815 [details]
Patch

Clearing flags on attachment: 271815

Committed r196846: <http://trac.webkit.org/changeset/196846>
Comment 12 Chris Dumez 2016-02-19 16:09:12 PST
All reviewed patches have been landed.  Closing bug.