summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-18 15:06:13 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-18 15:11:20 +0100
commit9e45594dc83d75e3bec90e5e519e8473f808ec85 (patch)
tree7ec18f6e3f4a514fcb54ef9213a758a5d359db3d /Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl
parentc99e35485a84dd8ec46f144b1ae781aaed89cc84 (diff)
downloadserenity-9e45594dc83d75e3bec90e5e519e8473f808ec85.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl')
-rw-r--r--Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl25
1 files changed, 25 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl
new file mode 100644
index 0000000000..87c87c64a3
--- /dev/null
+++ b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl
@@ -0,0 +1,25 @@
+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;
+
+};