RESOLVED FIXED 34620
Changing display type of parent of input on focus causes input field to not receive key events
https://bugs.webkit.org/show_bug.cgi?id=34620
Summary Changing display type of parent of input on focus causes input field to not r...
Simon Fraser (smfr)
Reported 2010-02-04 15:17:26 PST
Created attachment 48174 [details] Reduction See attached testcase; if the focus handler on a text field changes the text field's parent display to inline-block, then the text field loses the ability to receive key events (but it retains focus). This affects the Facebook signup page.
Attachments
Reduction (572 bytes, text/html)
2010-02-04 15:17 PST, Simon Fraser (smfr)
no flags
Patch (4.96 KB, patch)
2010-02-04 18:38 PST, Simon Fraser (smfr)
no flags
Patch (8.88 KB, patch)
2010-02-04 20:29 PST, Simon Fraser (smfr)
mitz: review+
Simon Fraser (smfr)
Comment 1 2010-02-04 15:17:46 PST
Simon Fraser (smfr)
Comment 2 2010-02-04 16:32:28 PST
The problem here is that VisibleSelection.start() keeps pointing to the old m_innerText of the RenderTextControlSingleLine, even after a new one gets created during layout.
Simon Fraser (smfr)
Comment 3 2010-02-04 18:38:22 PST
Simon Fraser (smfr)
Comment 4 2010-02-04 20:08:47 PST
Comment on attachment 48190 [details] Patch Mitz points out that Element::attach() goes to some length to avoid calling updateFocusAppearance() directly.
Simon Fraser (smfr)
Comment 5 2010-02-04 20:29:50 PST
Simon Fraser (smfr)
Comment 6 2010-02-05 11:50:47 PST
Note You need to log in before you can comment on or make changes to this bug.