Skip to content

Commit

Permalink
#23330 modified performance interface's timing member to attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
shnmorimoto authored and jdm committed Dec 13, 2019
1 parent 7d4996f commit 2457a6b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions components/script/dom/webidls/Performance.webidl
Expand Up @@ -34,23 +34,20 @@ partial interface Performance {
[Throws]
void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
void clearMeasures(optional DOMString measureName);


};

//https://w3c.github.io/resource-timing/#sec-extensions-performance-interface
partial interface Performance {
void clearResourceTimings ();
void setResourceTimingBufferSize (unsigned long maxSize);
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
[Exposed=Window]
partial interface Performance {
[SameObject, Exposed=Window]
[SameObject]
readonly attribute PerformanceNavigationTiming timing;
[SameObject]
readonly attribute PerformanceNavigation navigation;
};

0 comments on commit 2457a6b

Please sign in to comment.