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 214642 b2e35973d6f4f6727088adbc859a39a671a6de5c
parent 214641 6b1e313094833108a79bee757799835bb63c3b2a
child 214643 6e5aee097c8648375f3ad4958cfbcdf63e4226a4
push id51532
push userbzbarsky@mozilla.com
push dateFri, 07 Nov 2014 19:11:02 +0000
treeherdermozilla-inbound@6e5aee097c86 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1063879
milestone36.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 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;
 };