mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibWeb: Make SessionHistoryEntry GC-allocated
These will need to float around more than they're currently able to. Put them on the GC heap to prepare for that. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
32557be930
commit
3b0e5a87db
7 changed files with 60 additions and 33 deletions
|
@ -83,7 +83,7 @@ WebIDL::ExceptionOr<void> History::go(long delta = 0)
|
|||
if (next_entry_index < sessions.size()) {
|
||||
auto const& next_entry = sessions.at(next_entry_index);
|
||||
// FIXME: 4. Traverse the history by a delta with delta and document's browsing context.
|
||||
browsing_context->loader().load(next_entry.url, FrameLoader::Type::Reload);
|
||||
browsing_context->loader().load(next_entry->url, FrameLoader::Type::Reload);
|
||||
}
|
||||
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue