ladybird/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl
Andreas Kling 9e45594dc8 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.
2021-01-18 15:11:20 +01:00

26 lines
1.1 KiB
Plaintext

interface PerformanceTiming {
readonly attribute unsigned long navigationStart;
readonly attribute unsigned long unloadEventStart;
readonly attribute unsigned long unloadEventEnd;
readonly attribute unsigned long redirectStart;
readonly attribute unsigned long redirectEnd;
readonly attribute unsigned long fetchStart;
readonly attribute unsigned long domainLookupStart;
readonly attribute unsigned long domainLookupEnd;
readonly attribute unsigned long connectStart;
readonly attribute unsigned long connectEnd;
readonly attribute unsigned long secureConnectionStart;
readonly attribute unsigned long requestStart;
readonly attribute unsigned long responseStart;
readonly attribute unsigned long responseEnd;
readonly attribute unsigned long domLoading;
readonly attribute unsigned long domInteractive;
readonly attribute unsigned long domContentLoadedEventStart;
readonly attribute unsigned long domContentLoadedEventEnd;
readonly attribute unsigned long domComplete;
readonly attribute unsigned long loadEventStart;
readonly attribute unsigned long loadEventEnd;
};