mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 17:11:51 +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
|
@ -644,7 +644,7 @@ void fetch_response_handover(JS::Realm& realm, Infrastructure::FetchParams const
|
|||
fetch_params.controller()->set_full_timing_info(fetch_params.timing_info());
|
||||
|
||||
// 3. Set fetchParams’s controller’s report timing steps to the following steps given a global object global:
|
||||
fetch_params.controller()->set_report_timing_steps([&vm, &response, &fetch_params, timing_info, unsafe_end_time](JS::Object const& global) mutable {
|
||||
fetch_params.controller()->set_report_timing_steps([&vm, &response, &fetch_params, timing_info, unsafe_end_time](JS::Object& global) mutable {
|
||||
// 1. If fetchParams’s request’s URL’s scheme is not an HTTP(S) scheme, then return.
|
||||
if (!Infrastructure::is_http_or_https_scheme(fetch_params.request()->url().scheme()))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue