Bug 193032 - TextFieldInputType::m_dataListDropdownIndicator needs proper lifecycle management
Summary: TextFieldInputType::m_dataListDropdownIndicator needs proper lifecycle manage...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-25 09:38 PST by zalan
Modified: 2022-08-20 04:49 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2018-12-25 09:38:10 PST
it is pretty much non-existent atm.
Comment 1 Ahmad Saleem 2022-08-20 04:48:57 PDT
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!