mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 13:42:52 +00:00
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:
parent
67cfb64d07
commit
618697ef13
Notes:
github-actions[bot]
2025-03-06 16:02:11 +00:00
Author: https://github.com/Lubrsi
Commit: 618697ef13
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3704
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 6 additions and 6 deletions
|
@ -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: this’s report timing steps is not null.
|
||||
VERIFY(m_report_timing_steps);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue