[Webkit-unassigned] [Bug 157995] [iOS] Allow clients to override the type of an input field

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 24 07:36:29 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157995

--- Comment #8 from mitz at webkit.org <mitz at webkit.org> ---
(In reply to comment #7)

> > Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3021
> > +    if (NSString *textContentType = [_formInputSession textContentType])
> > +        [_traits setTextContentType:textContentType];
> > +    else if (NSString *textContentType = contentTypeFromFieldName(_assistedNodeInformation.autofillFieldName))
> > +        [_traits setTextContentType:textContentType];
> 
> The problem with this implementation is that if the field’s
> autofillFieldName is, say, None, and the client uses the SPI to set
> textContentType to some non-nil value and then back to nil, the traits’
> textContentType doesn’t revert to whatever the default value is for None. Is
> there a way to avoid this issue?

I suppose this may already be a problem with the existing code when focus moves from a filed with an autofillFieldName that has a corresponding textContentType to one with an autofillFieldName that doesn’t.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160524/631b3f7d/attachment.html>


More information about the webkit-unassigned mailing list