Bug 822480 - Put getEntries* webidl methods behind the dom.enable_resource_timing pref. r=bz
authorValentin Gosu <valentin.gosu@gmail.com>
Mon, 21 Apr 2014 09:34:31 -0400
changeset 197882 f27f91556752114079be188a8ce883052883298d
parent 197881 0a4b034ec82c887772625dec8e9f3acffa6c18e1
child 197883 a5679c8bc3fe99eab1f79a6f42915167767bc7f3
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs822480
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 822480 - Put getEntries* webidl methods behind the dom.enable_resource_timing pref. r=bz
dom/webidl/Performance.webidl
--- a/dom/webidl/Performance.webidl
+++ b/dom/webidl/Performance.webidl
@@ -21,19 +21,24 @@ interface Performance {
   [Constant]
   readonly attribute PerformanceNavigation navigation;
 
   jsonifier;
 };
 
 // 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);
 };