mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibWeb: Prevent crash when inspecting SVG documents
(Or any document with aria-hidden=true on the root)
This commit is contained in:
parent
9430bbcc62
commit
1cc199d365
2 changed files with 3 additions and 3 deletions
|
@ -93,8 +93,8 @@ GUI::Variant AccessibilityTreeModel::data(GUI::ModelIndex const& index, GUI::Mod
|
|||
if (type != "element")
|
||||
return node_role;
|
||||
|
||||
auto name = node.get_deprecated_string("name"sv).value();
|
||||
auto description = node.get_deprecated_string("description"sv).value();
|
||||
auto name = node.get_deprecated_string("name"sv).value_or("");
|
||||
auto description = node.get_deprecated_string("description"sv).value_or("");
|
||||
|
||||
StringBuilder builder;
|
||||
builder.append(node_role.to_lowercase());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue