mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 15:17:45 +00:00
LibWeb: Do not unload during same-document history step application
See https://github.com/whatwg/html/pull/9904
This commit is contained in:
parent
67566e5017
commit
38531ce7cf
1 changed files with 11 additions and 8 deletions
|
@ -424,6 +424,8 @@ void TraversableNavigable::apply_the_history_step(int step, Optional<SourceSnaps
|
|||
|
||||
// 1. If changingNavigableContinuation's update-only is false, then:
|
||||
if (!update_only) {
|
||||
// 1. If targetEntry's document does not equal displayedDocument, then:
|
||||
if (target_entry->document_state->document().ptr() != displayed_document.ptr()) {
|
||||
// 1. Unload displayedDocument given targetEntry's document.
|
||||
displayed_document->unload(target_entry->document_state->document());
|
||||
|
||||
|
@ -434,6 +436,7 @@ void TraversableNavigable::apply_the_history_step(int step, Optional<SourceSnaps
|
|||
child_navigable->active_document()->unload();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 3. Activate history entry targetEntry for navigable.
|
||||
navigable->activate_history_entry(*target_entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue