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 179792 f27f91556752114079be188a8ce883052883298d
parent 179791 0a4b034ec82c887772625dec8e9f3acffa6c18e1
child 179793 a5679c8bc3fe99eab1f79a6f42915167767bc7f3
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersbz
bugs822480
milestone31.0a1
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);
 };