mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Stub out the PerformanceTiming object from Navigation Timing
Just have all the timing functions return 0 for now. We can now run the Shynet JS on https://linus.dev/ although the XHR is rejected by our same-origin policy.
This commit is contained in:
@@ -36,6 +36,7 @@ namespace Web::HighResolutionTime {
|
||||
Performance::Performance(DOM::Window& window)
|
||||
: DOM::EventTarget(static_cast<Bindings::ScriptExecutionContext&>(window.document()))
|
||||
, m_window(window)
|
||||
, m_timing(make<NavigationTiming::PerformanceTiming>(window))
|
||||
{
|
||||
m_timer.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user