Skip to content

Truly independent web browser

888 B
Raw Blame
// https://w3c.github.io/event-timing/#sec-performance-event-timing
[Exposed=Window, ImplementedIn=Rust]
interface PerformanceEventTiming : PerformanceEntry {
    readonly attribute DOMHighResTimeStamp processingStart;
    readonly attribute DOMHighResTimeStamp processingEnd;
    readonly attribute boolean cancelable;
    readonly attribute Node? target;
    readonly attribute DOMString targetSelector;
    readonly attribute unsigned long long interactionId;
    [Default] object toJSON();
};

// https://w3c.github.io/event-timing/#sec-extensions
[Exposed=Window]
partial interface Performance {
    [SameObject] readonly attribute EventCounts eventCounts;
    readonly attribute unsigned long long interactionCount;
};

// https://w3c.github.io/event-timing/#sec-modifications-perf-timeline
partial dictionary PerformanceObserverInit {
    DOMHighResTimeStamp durationThreshold;
};