[Webkit-unassigned] [Bug 193032] TextFieldInputType::m_dataListDropdownIndicator needs proper lifecycle management

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 20 04:48:57 PDT 2022


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

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #1 from Ahmad Saleem <zlip.792 at gmail.com> ---
It seems to address this bit - I think - https://bugs.webkit.org/show_bug.cgi?id=209909

__

Existing logic in `TextFieldInputType` is responsible for upholding this invariant -- when the list attribute
changes on an input field (e.g. when we parse the list attribute, or when it is set by JavaScript), we update
the inline display style of `m_dataListDropdownIndicator`, such that it is set to `display: none` only if there
is either no list attribute, or the list attribute is empty, or the list does not refer to a connected datalist
element. However, there is one scenario in which this invariant is violated. Consider the following:

1. An input field is created, and its list attribute is set to "foo". Importantly, it is not connected yet.
2. A datalist element with id "foo" is then created and then added to the document.
3. The input field created in (1) is then added to the document.

___

Is something else needed here? Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220820/a25299db/attachment.htm>


More information about the webkit-unassigned mailing list