зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1415630 Make PerformanceResourceTiming.fetchStart match the time we dispatch the FetchEvent when SW interception occurs. r=baku
This commit is contained in:
Родитель
ba9bf05ed5
Коммит
39ab1eb0b4
|
@ -144,8 +144,8 @@ PerformanceTiming::FetchStartHighRes()
|
|||
MOZ_ASSERT(!mAsyncOpen.IsNull(), "The fetch start time stamp should always be "
|
||||
"valid if the performance timing is enabled");
|
||||
if (!mAsyncOpen.IsNull()) {
|
||||
if (!mWorkerStart.IsNull() && mWorkerStart > mAsyncOpen) {
|
||||
mFetchStart = TimeStampToDOMHighRes(mWorkerStart);
|
||||
if (!mWorkerRequestStart.IsNull() && mWorkerRequestStart > mAsyncOpen) {
|
||||
mFetchStart = TimeStampToDOMHighRes(mWorkerRequestStart);
|
||||
} else {
|
||||
mFetchStart = TimeStampToDOMHighRes(mAsyncOpen);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче