Bug 822480 - Put getEntries* webidl methods behind the dom.enable_resource_timing pref. r=bz

This commit is contained in:
Valentin Gosu 2014-04-21 09:34:31 -04:00
parent 864ffca9e7
commit 240e4f131a

View File

@ -26,14 +26,19 @@ interface Performance {
// http://www.w3c-test.org/webperf/specs/PerformanceTimeline/#sec-window.performance-attribute
partial interface Performance {
[Pref="dom.enable_resource_timing"]
PerformanceEntryList getEntries();
[Pref="dom.enable_resource_timing"]
PerformanceEntryList getEntriesByType(DOMString entryType);
[Pref="dom.enable_resource_timing"]
PerformanceEntryList getEntriesByName(DOMString name, optional DOMString
entryType);
};
// http://w3c-test.org/webperf/specs/ResourceTiming/#extensions-performance-interface
partial interface Performance {
[Pref="dom.enable_resource_timing"]
void clearResourceTimings();
[Pref="dom.enable_resource_timing"]
void setResourceTimingBufferSize(unsigned long maxSize);
};