Bug 1501930 - Make the performance attribute on WorkerGlobalScope Replaceable, as per spec. r=bzbarsky
authorMarkus Stange <mstange@themasta.com>
Tue, 20 Nov 2018 01:38:37 +0000
changeset 503514 2ac85aee845090097edf39e8d468f2551fbc06bf
parent 503513 5884c1ce66969e88d18cb453a2e92304d1ddb339
child 503598 74c27e915067b5afc43f4f64fd8fa2b0dc3bc81a
child 503601 fc843052b3fd6917e95000535c3b3f4a8e57a9d6
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1501930
milestone65.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 1501930 - Make the performance attribute on WorkerGlobalScope Replaceable, as per spec. r=bzbarsky Differential Revision: https://phabricator.services.mozilla.com/D9899
dom/webidl/WorkerGlobalScope.webidl
testing/web-platform/meta/hr-time/idlharness.any.js.ini
--- a/dom/webidl/WorkerGlobalScope.webidl
+++ b/dom/webidl/WorkerGlobalScope.webidl
@@ -35,15 +35,15 @@ WorkerGlobalScope implements WindowOrWor
 // Not implemented yet: bug 1072107.
 // WorkerGlobalScope implements FontFaceSource;
 
 // Mozilla extensions
 partial interface WorkerGlobalScope {
 
   void dump(optional DOMString str);
 
-  // XXXbz no spec for this yet, because the webperf WG is a bit dysfunctional
-  [Constant, Cached]
+  // https://w3c.github.io/hr-time/#the-performance-attribute
+  [Constant, Cached, Replaceable]
   readonly attribute Performance performance;
 
   [Func="WorkerGlobalScope::IsInAutomation", Throws]
   object getJSTestingFunctions();
 };
--- a/testing/web-platform/meta/hr-time/idlharness.any.js.ini
+++ b/testing/web-platform/meta/hr-time/idlharness.any.js.ini
@@ -1,19 +1,2 @@
-[idlharness.any.worker.html]
-  [WorkerGlobalScope interface: attribute performance]
-    expected: FAIL
-
-
-[idlharness.any.sharedworker.html]
-  [WorkerGlobalScope interface: attribute performance]
-    expected: FAIL
-
-
-[idlharness.any.html]
-
 [idlharness.https.any.serviceworker.html]
   expected: TIMEOUT
-
-[idlharness.any.serviceworker.html]
-  [WorkerGlobalScope interface: attribute performance]
-    expected: FAIL
-