mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Skip select element internal shadow tree update unless it exists
This fixes a crash seen on https://www.gaslightanthem.com/
This commit is contained in:
committed by
Jelle Raaijmakers
parent
6713ed483b
commit
58b5181364
@@ -383,6 +383,9 @@ void HTMLSelectElement::create_shadow_tree_if_needed()
|
||||
|
||||
void HTMLSelectElement::update_inner_text_element()
|
||||
{
|
||||
if (!m_inner_text_element)
|
||||
return;
|
||||
|
||||
// Update inner text element to text content of selected option
|
||||
for (auto const& option_element : list_of_options()) {
|
||||
if (option_element->selected()) {
|
||||
|
||||
Reference in New Issue
Block a user