mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Notify ObservableArray observer about deletions in clear()
Another +1 WPT subtest!
This commit is contained in:
parent
cf34a7bb32
commit
d33445a4ea
Notes:
github-actions[bot]
2025-04-24 16:27:56 +00:00
Author: https://github.com/awesomekling
Commit: d33445a4ea
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4455
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,8 @@ JS::ThrowCompletionOr<void> ObservableArray::append(JS::Value value)
|
||||||
void ObservableArray::clear()
|
void ObservableArray::clear()
|
||||||
{
|
{
|
||||||
while (!indexed_properties().is_empty()) {
|
while (!indexed_properties().is_empty()) {
|
||||||
indexed_properties().storage()->take_first();
|
auto deleted_value = indexed_properties().storage()->take_first().value;
|
||||||
|
MUST(m_on_delete_an_indexed_value->function()(deleted_value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@ Harness status: OK
|
||||||
|
|
||||||
Found 3 tests
|
Found 3 tests
|
||||||
|
|
||||||
2 Pass
|
3 Pass
|
||||||
1 Fail
|
Pass mutating constructed CSSStyleSheet applied to root invalidates styles
|
||||||
Fail mutating constructed CSSStyleSheet applied to root invalidates styles
|
|
||||||
Pass mutating constructed CSSStyleSheet applied to shadowdom invalidates styles
|
Pass mutating constructed CSSStyleSheet applied to shadowdom invalidates styles
|
||||||
Pass mutating dependent constructed CSSStyleSheet applied to shadowdom invalidates styles
|
Pass mutating dependent constructed CSSStyleSheet applied to shadowdom invalidates styles
|
Loading…
Add table
Add a link
Reference in a new issue