Bug 1425458 - Resource timing entries Workers - part 4 - exposing partial interface, r=smaug
☠☠ backed out by e0c276b06c0d ☠ ☠
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 24 Jan 2018 17:17:32 +0100
changeset 400589 f70500179140ad57dbfc616c15c781b705126a92
parent 400588 793bbfc2325714e3e551ea638b7dba4e9f361895
child 400590 7034af4332e478f94032966adf632b9330294544
push id99191
push useramarchesini@mozilla.com
push dateWed, 24 Jan 2018 16:18:05 +0000
treeherdermozilla-inbound@b96d58fd945c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1425458
milestone60.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 1425458 - Resource timing entries Workers - part 4 - exposing partial interface, r=smaug
dom/performance/Performance.cpp
dom/webidl/Performance.webidl
--- a/dom/performance/Performance.cpp
+++ b/dom/performance/Performance.cpp
@@ -232,17 +232,16 @@ Performance::ClearUserEntries(const Opti
       ++i;
     }
   }
 }
 
 void
 Performance::ClearResourceTimings()
 {
-  MOZ_ASSERT(NS_IsMainThread());
   mResourceEntries.Clear();
 }
 
 DOMHighResTimeStamp
 Performance::RoundTime(double aTime) const
 {
   // Round down to the nearest 20us, because if the timer is too accurate people
   // can do nasty timing attacks with it.
--- a/dom/webidl/Performance.webidl
+++ b/dom/webidl/Performance.webidl
@@ -37,17 +37,17 @@ partial interface Performance {
 partial interface Performance {
   PerformanceEntryList getEntries();
   PerformanceEntryList getEntriesByType(DOMString entryType);
   PerformanceEntryList getEntriesByName(DOMString name, optional DOMString
     entryType);
 };
 
 // http://www.w3.org/TR/resource-timing/#extensions-performance-interface
-[Exposed=Window]
+[Exposed=(Window,Worker)]
 partial interface Performance {
   void clearResourceTimings();
   void setResourceTimingBufferSize(unsigned long maxSize);
   attribute EventHandler onresourcetimingbufferfull;
 };
 
 // GC microbenchmarks, pref-guarded, not for general use (bug 1125412)
 [Exposed=Window]