Bug 1118978 part 4. Mark performance.now() as being side-effect free but dependent on device state. r=peterv
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 15 Jan 2015 17:39:01 -0500
changeset 224354 8685f427b0bbf35067d22626d3502f4c15a40910
parent 224353 28487aeabd0a9082479bc75ef2af84a3b6b73fbf
child 224355 f9a5a968a5f32959dabaa54cfe045d802fc57104
push id28123
push userphilringnalda@gmail.com
push dateSat, 17 Jan 2015 20:51:39 +0000
treeherdermozilla-central@b86864fd9d60 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1118978
milestone38.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 1118978 part 4. Mark performance.now() as being side-effect free but dependent on device state. r=peterv
dom/webidl/Performance.webidl
--- a/dom/webidl/Performance.webidl
+++ b/dom/webidl/Performance.webidl
@@ -10,16 +10,17 @@
  * liability, trademark and document use rules apply.
  */
 
 typedef double DOMHighResTimeStamp;
 typedef sequence <PerformanceEntry> PerformanceEntryList;
 
 [Exposed=(Window,Worker)]
 interface Performance {
+  [DependsOn=DeviceState, Affects=Nothing]
   DOMHighResTimeStamp now();
 };
 
 [Exposed=Window]
 partial interface Performance {
   [Constant]
   readonly attribute PerformanceTiming timing;
   [Constant]