LibWeb: Make reference to global in report timing steps non-const

Marking a resource timing entry requires calling non-const methods on
the global object to append to the performance buffer.
This commit is contained in:
Luke Wilde 2025-02-26 15:02:49 +00:00 committed by Andrew Kaster
parent 67cfb64d07
commit 618697ef13
Notes: github-actions[bot] 2025-03-06 16:02:11 +00:00
3 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ void FetchController::visit_edges(JS::Cell::Visitor& visitor)
visitor.visit(m_fetch_params);
}
void FetchController::set_report_timing_steps(Function<void(JS::Object const&)> report_timing_steps)
void FetchController::set_report_timing_steps(Function<void(JS::Object&)> report_timing_steps)
{
m_report_timing_steps = GC::create_function(vm().heap(), move(report_timing_steps));
}
@ -43,7 +43,7 @@ void FetchController::set_next_manual_redirect_steps(Function<void()> next_manua
}
// https://fetch.spec.whatwg.org/#finalize-and-report-timing
void FetchController::report_timing(JS::Object const& global) const
void FetchController::report_timing(JS::Object& global) const
{
// 1. Assert: thiss report timing steps is not null.
VERIFY(m_report_timing_steps);