mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Move vector of navigables in check_if_unloading_is_canceled
If we copy instead of move, the GC::Root source locations get overwritten and we can't tell from a heap dump who created the roots. (And it's also more efficient to move instead of copy ofc.)
This commit is contained in:
committed by
Andreas Kling
parent
8af78cff30
commit
52da7b649b
Notes:
github-actions[bot]
2025-12-24 09:20:52 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/52da7b649be Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7223 Reviewed-by: https://github.com/trflynn89
@@ -1017,7 +1017,7 @@ TraversableNavigable::CheckIfUnloadingIsCanceledResult TraversableNavigable::che
|
||||
|
||||
TraversableNavigable::CheckIfUnloadingIsCanceledResult TraversableNavigable::check_if_unloading_is_canceled(Vector<GC::Root<Navigable>> navigables_that_need_before_unload)
|
||||
{
|
||||
return check_if_unloading_is_canceled(navigables_that_need_before_unload, {}, {}, {});
|
||||
return check_if_unloading_is_canceled(move(navigables_that_need_before_unload), {}, {}, {});
|
||||
}
|
||||
|
||||
Vector<GC::Ref<SessionHistoryEntry>> TraversableNavigable::get_session_history_entries_for_the_navigation_api(GC::Ref<Navigable> navigable, int target_step)
|
||||
|
||||
Reference in New Issue
Block a user