mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Set navigation start time when creating a new Document
This currently uses a non spec-compliant property on the Response object, which represents the time that the Response was created. Setting this value allows `Performance.timeOrigin` to return a reasonable value.
This commit is contained in:
parent
ddea1c6248
commit
a8904451ff
Notes:
github-actions[bot]
2025-01-27 13:54:49 +00:00
Author: https://github.com/tcl3
Commit: a8904451ff
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3341
2 changed files with 8 additions and 2 deletions
|
@ -125,6 +125,7 @@ public:
|
|||
|
||||
// Non-standard
|
||||
[[nodiscard]] Optional<StringView> network_error_message() const;
|
||||
MonotonicTime response_time() const { return m_response_time; }
|
||||
|
||||
protected:
|
||||
explicit Response(GC::Ref<HeaderList>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue