Bug 1063879. Speed up the "performance" getter on workers. r=peterv
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 07 Nov 2014 14:10:39 -0500
changeset 226051 b2e35973d6f4f6727088adbc859a39a671a6de5c
parent 226050 6b1e313094833108a79bee757799835bb63c3b2a
child 226052 6e5aee097c8648375f3ad4958cfbcdf63e4226a4
push id31
push userdburns@mozilla.com
push dateSat, 08 Nov 2014 00:12:59 +0000
reviewerspeterv
bugs1063879
milestone36.0a1
Bug 1063879. Speed up the "performance" getter on workers. r=peterv
dom/webidl/WorkerGlobalScope.webidl
--- a/dom/webidl/WorkerGlobalScope.webidl
+++ b/dom/webidl/WorkerGlobalScope.webidl
@@ -45,10 +45,11 @@ WorkerGlobalScope implements GlobalFetch
 
 // Mozilla extensions
 partial interface WorkerGlobalScope {
   attribute EventHandler onclose;
 
   void dump(optional DOMString str);
 
   // XXXbz no spec for this yet, because the webperf WG is a bit dysfunctional
+  [Constant, Cached]
   readonly attribute Performance performance;
 };