WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111026
[EFL][WK2] Enable interactive form validation for email and url input type validation
https://bugs.webkit.org/show_bug.cgi?id=111026
Summary
[EFL][WK2] Enable interactive form validation for email and url input type va...
Gyuyoung Kim
Reported
2013-02-27 17:46:10 PST
Chromium, blackberry and WK1 gtk ports already check if input values are valid by enabling this feature. I would like to enable this functionality for WebKit2 EFL port. First, this patch supports if email and url type is valid.
Attachments
Patch
(4.28 KB, patch)
2013-02-27 17:51 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Screenshot when inputing wrong email type
(78.54 KB, image/png)
2013-02-27 17:53 PST
,
Gyuyoung Kim
no flags
Details
Patch
(4.27 KB, patch)
2013-03-05 17:23 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(4.24 KB, patch)
2013-03-05 22:16 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(4.15 KB, patch)
2013-03-06 01:15 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2013-02-27 17:51:44 PST
Created
attachment 190630
[details]
Patch
Gyuyoung Kim
Comment 2
2013-02-27 17:53:51 PST
Created
attachment 190631
[details]
Screenshot when inputing wrong email type
Benjamin Poulain
Comment 3
2013-03-05 17:16:48 PST
Comment on
attachment 190630
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=190630&action=review
I sign off on this for WK2.
> Source/WebCore/platform/efl/LocalizedStringsEfl.cpp:494 > - return String::fromUTF8("type mismatch"); > + return String::fromUTF8("Please enter an email address"); > } > > String validationMessageTypeMismatchForMultipleEmailText() > { > - return String::fromUTF8("type mismatch"); > + return String::fromUTF8("Please enter an email address"); > } > > String validationMessageTypeMismatchForURLText() > { > - return String::fromUTF8("type mismatch"); > + return String::fromUTF8("Please enter a URL");
You could return ASCIILiteral here.
> Source/WebCore/platform/efl/RenderThemeEfl.cpp:760 > // FIXME: We need to support other types. > - return type == InputTypeNames::range(); > + return type == InputTypeNames::range() > + || type == InputTypeNames::email()
Still need the FIXME?
Gyuyoung Kim
Comment 4
2013-03-05 17:23:32 PST
Created
attachment 191615
[details]
Patch
Gyuyoung Kim
Comment 5
2013-03-05 17:25:27 PST
Benjamin, thank you for your review. I fix all. CC'ing Laszlo and Chris. Could you review this patch. This patch is signed off by Benjamin.
Chris Dumez
Comment 6
2013-03-05 22:06:36 PST
Comment on
attachment 191615
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=191615&action=review
> Source/WebCore/platform/efl/RenderThemeEfl.cpp:-758 > - // FIXME: We need to support other types.
I think the FIXME should stay. We still need to support way more types (e.g. search, datetime, color, telephone, ...)
Gyuyoung Kim
Comment 7
2013-03-05 22:16:32 PST
Created
attachment 191653
[details]
Patch
Gyuyoung Kim
Comment 8
2013-03-05 22:17:16 PST
(In reply to
comment #6
)
> (From update of
attachment 191615
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=191615&action=review
> > > Source/WebCore/platform/efl/RenderThemeEfl.cpp:-758 > > - // FIXME: We need to support other types. > > I think the FIXME should stay. We still need to support way more types (e.g. search, datetime, color, telephone, ...)
Ok, I don't mind to keep it.
Gyuyoung Kim
Comment 9
2013-03-06 01:15:17 PST
Created
attachment 191681
[details]
Patch
Kenneth Rohde Christiansen
Comment 10
2013-03-06 01:22:19 PST
Comment on
attachment 191681
[details]
Patch LGTM
Laszlo Gombos
Comment 11
2013-03-06 18:17:25 PST
Comment on
attachment 191681
[details]
Patch r=me. Signed off by Benjamin for WK2.
WebKit Review Bot
Comment 12
2013-03-06 19:27:37 PST
Comment on
attachment 191681
[details]
Patch Clearing flags on attachment: 191681 Committed
r145024
: <
http://trac.webkit.org/changeset/145024
>
WebKit Review Bot
Comment 13
2013-03-06 19:27:42 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug