LibWeb: Implement Resource Timing

This commit is contained in:
Luke Wilde 2025-02-26 15:51:05 +00:00 committed by Andrew Kaster
commit 6d1f78198d
Notes: github-actions[bot] 2025-03-06 16:01:58 +00:00
21 changed files with 741 additions and 14 deletions

View file

@ -952,8 +952,8 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest
m_fetch_controller->terminate();
}
// FIXME: 7. Report timing for thiss fetch controller given the current global object.
// We cannot do this for responses that have a body yet, as we do not setup the stream that then calls processResponseEndOfBody in `fetch_response_handover`.
// 7. Report timing for thiss fetch controller given the current global object.
m_fetch_controller->report_timing(HTML::current_principal_global_object());
// 8. Run handle response end-of-body for this.
TRY(handle_response_end_of_body());