#23330 modified performance interface's timing member to attribute

This commit is contained in:
Shinichi Morimoto 2019-12-07 22:04:47 +09:00 committed by Josh Matthews
parent 7d4996f57d
commit 2457a6be0f

View file

@ -34,23 +34,20 @@ partial interface Performance {
[Throws] [Throws]
void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark); void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
void clearMeasures(optional DOMString measureName); void clearMeasures(optional DOMString measureName);
}; };
//https://w3c.github.io/resource-timing/#sec-extensions-performance-interface //https://w3c.github.io/resource-timing/#sec-extensions-performance-interface
partial interface Performance { partial interface Performance {
void clearResourceTimings (); void clearResourceTimings ();
void setResourceTimingBufferSize (unsigned long maxSize); void setResourceTimingBufferSize (unsigned long maxSize);
attribute EventHandler onresourcetimingbufferfull; attribute EventHandler onresourcetimingbufferfull;
}; };
// FIXME(avada): this should be deprecated, but is currently included for web compat
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html#performance-timing-attribute
[Exposed=(Window)]
partial interface Performance {
PerformanceNavigationTiming timing();
};
// https://w3c.github.io/navigation-timing/#extensions-to-the-performance-interface // https://w3c.github.io/navigation-timing/#extensions-to-the-performance-interface
[Exposed=Window]
partial interface Performance { partial interface Performance {
[SameObject, Exposed=Window] [SameObject]
readonly attribute PerformanceNavigationTiming timing;
[SameObject]
readonly attribute PerformanceNavigation navigation; readonly attribute PerformanceNavigation navigation;
}; };