LibWeb: Return wall time from PerformanceTiming interface

This matches the behavior of other browsers.
This commit is contained in:
Tim Ledbetter 2025-01-27 09:00:02 +00:00 committed by Alexander Kalenik
parent 7488136a51
commit 05351dfe45
Notes: github-actions[bot] 2025-01-27 13:54:29 +00:00
3 changed files with 52 additions and 18 deletions

View file

@ -54,17 +54,17 @@ struct DocumentLoadTimingInfo {
// https://html.spec.whatwg.org/multipage/dom.html#navigation-start-time
double navigation_start_time { 0 };
// https://html.spec.whatwg.org/multipage/dom.html#dom-interactive-time
double dom_interactive_time { 0 };
HighResolutionTime::DOMHighResTimeStamp dom_interactive_time { 0 };
// https://html.spec.whatwg.org/multipage/dom.html#dom-content-loaded-event-start-time
double dom_content_loaded_event_start_time { 0 };
HighResolutionTime::DOMHighResTimeStamp dom_content_loaded_event_start_time { 0 };
// https://html.spec.whatwg.org/multipage/dom.html#dom-content-loaded-event-end-time
double dom_content_loaded_event_end_time { 0 };
HighResolutionTime::DOMHighResTimeStamp dom_content_loaded_event_end_time { 0 };
// https://html.spec.whatwg.org/multipage/dom.html#dom-complete-time
double dom_complete_time { 0 };
HighResolutionTime::DOMHighResTimeStamp dom_complete_time { 0 };
// https://html.spec.whatwg.org/multipage/dom.html#load-event-start-time
double load_event_start_time { 0 };
HighResolutionTime::DOMHighResTimeStamp load_event_start_time { 0 };
// https://html.spec.whatwg.org/multipage/dom.html#load-event-end-time
double load_event_end_time { 0 };
HighResolutionTime::DOMHighResTimeStamp load_event_end_time { 0 };
};
// https://html.spec.whatwg.org/multipage/dom.html#document-unload-timing-info