| Summary: | [iOS][WK2] Use a better concept to describe the reason we defer zooming a focused element: selectabiltiy | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||||
| Component: | WebKit Misc. | Assignee: | Daniel Bates <dbates> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | megan_gardner, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Local Build | ||||||||
| Hardware: | iPhone / iPad | ||||||||
| OS: | iOS 12 | ||||||||
| Attachments: |
|
||||||||
|
Description
Daniel Bates
2019-03-26 11:48:02 PDT
Created attachment 365982 [details]
Patch
Comment on attachment 365982 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365982&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4825 > + case WebKit::InputType::DateTime: Note that this is a new case. Old code didn't consider DataTime, but we should. It acts like a text field (or at least does on the Mac). > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4835 > + case WebKit::InputType::Week: Note that this is a new case. Old code didn't consider Week, but we should. It acts like a text field (or at least does on the Mac). This type appears to behave weirdly on iOS currently. We need to fix bug #158327. Comment on attachment 365982 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365982&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4808 > +static bool mayBeSelectable(WebKit::InputType type) Wenson wants something more precise, mayContainSelectableText. Comment on attachment 365982 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365982&action=review > Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4808 > +static bool mayBeSelectable(WebKit::InputType type) Nit - mayContainSelectableText? >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4835 >> + case WebKit::InputType::Week: > > Note that this is a new case. Old code didn't consider Week, but we should. It acts like a text field (or at least does on the Mac). This type appears to behave weirdly on iOS currently. We need to fix bug #158327. Nit - maybe leave a FIXME referencing the bug number (158327) here/ (In reply to Wenson Hsieh from comment #4) > >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:4835 > >> + case WebKit::InputType::Week: > > > > Note that this is a new case. Old code didn't consider Week, but we should. It acts like a text field (or at least does on the Mac). This type appears to behave weirdly on iOS currently. We need to fix bug #158327. > > Nit - maybe leave a FIXME referencing the bug number (158327) here/ I am not going to do this because it does not make sense to me to do this. This was just a remark to the reader, you, of this patch to point out that the existing code did not handle <input type="week"> – that in and of itself was a bug in the old code. I mentioned bug #158327 because it turns out (coincidentally?) that there are more bugs around <input type="week"> on iOS. So, the omission of WebKit::InputType::Week turns out not to be the thing that broke the <input type="week">, but it still wasn't correct. Created attachment 366010 [details]
To Land
Comment on attachment 366010 [details] To Land Clearing flags on attachment: 366010 Committed r243520: <https://trac.webkit.org/changeset/243520> All reviewed patches have been landed. Closing bug. |