Bug 1415740 P1 Allow PerformanceResourceTiming.workerStart to be accessed on no-cors resources without Timing-Allow-Origin. r=baku
authorBen Kelly <ben@wanderview.com>
Fri, 10 Nov 2017 00:20:30 -0800
changeset 391266 2f496f8ba8923d9c5cb5c578a7252170bc9932a1
parent 391265 b652edba2199b2c3a8e905a780a9bbeba50edb37
child 391267 56b28c7bc989ff59dc6e076a08d175c954b3da86
push id32868
push userryanvm@gmail.com
push dateFri, 10 Nov 2017 21:13:32 +0000
treeherdermozilla-central@092ccc6335a5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1415740
milestone58.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 1415740 P1 Allow PerformanceResourceTiming.workerStart to be accessed on no-cors resources without Timing-Allow-Origin. r=baku
dom/performance/PerformanceResourceTiming.h
--- a/dom/performance/PerformanceResourceTiming.h
+++ b/dom/performance/PerformanceResourceTiming.h
@@ -59,17 +59,17 @@ public:
   }
 
   void SetNextHopProtocol(const nsAString& aNextHopProtocol)
   {
     mNextHopProtocol = aNextHopProtocol;
   }
 
   DOMHighResTimeStamp WorkerStart() const {
-    return mTiming && mTiming->TimingAllowed()
+    return mTiming
         ? mTiming->WorkerStartHighRes()
         : 0;
   }
 
   DOMHighResTimeStamp FetchStart() const {
     return mTiming
         ? mTiming->FetchStartHighRes()
         : 0;