mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/HTML: Improve assertion for apply the history step mismatch
This more directly catches the bug we have that causes this assertion to happen on certain sites and WPT tests.
This commit is contained in:
parent
dc58f6567f
commit
03370dc76a
|
|
@ -564,6 +564,7 @@ TraversableNavigable::HistoryStepResult TraversableNavigable::apply_the_history_
|
|||
case Bindings::NavigationType::Push:
|
||||
// FIXME: Add ever populated check, and fix the bug where top level traversable's step is not updated when a child navigable navigates
|
||||
// - "push": Assert: targetEntry's step is displayedEntry's step + 1 and targetEntry's document state's ever populated is false.
|
||||
VERIFY(target_entry != displayed_entry);
|
||||
VERIFY(target_entry->step().get<int>() > displayed_entry->step().get<int>());
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user