mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
LibWeb: Exit parse_font_family_value()
when hitting an illegal token
...instead of looping forever. Oops! :^)
This commit is contained in:
parent
43903aa960
commit
c48347f0cb
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/AtkinsSJ
Commit: c48347f0cb
Pull-request: https://github.com/SerenityOS/serenity/pull/19243
1 changed files with 2 additions and 0 deletions
|
@ -5962,6 +5962,8 @@ ErrorOr<RefPtr<StyleValue>> Parser::parse_font_family_value(TokenStream<Componen
|
|||
return nullptr;
|
||||
continue;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!current_name_parts.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue