mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Bug 1322292 - Some fixes for the Performance API in workers - part 2 - Get rid of NowBaseTimeStamp()
https://hg.mozilla.org/mozilla-central/rev/301231f4165a
This commit is contained in:
parent
94ea4f222c
commit
c1d7159d0f
7 changed files with 11 additions and 40 deletions
|
|
@ -2419,8 +2419,6 @@ WorkerPrivateParent<Derived>::WorkerPrivateParent(
|
|||
MOZ_ASSERT_IF(mIsChromeWorker, mIsSecureContext);
|
||||
|
||||
MOZ_ASSERT(IsDedicatedWorker());
|
||||
mNowBaseTimeStamp = aParent->NowBaseTimeStamp();
|
||||
mNowBaseTimeHighRes = aParent->NowBaseTime();
|
||||
|
||||
if (aParent->mParentFrozen) {
|
||||
Freeze(nullptr);
|
||||
|
|
@ -2451,18 +2449,6 @@ WorkerPrivateParent<Derived>::WorkerPrivateParent(
|
|||
.creationOptions().setSecureContext(true);
|
||||
}
|
||||
|
||||
if (IsDedicatedWorker() && mLoadInfo.mWindow &&
|
||||
mLoadInfo.mWindow->GetPerformance()) {
|
||||
mNowBaseTimeStamp = mLoadInfo.mWindow->GetPerformance()->GetDOMTiming()->
|
||||
GetNavigationStartTimeStamp();
|
||||
mNowBaseTimeHighRes =
|
||||
mLoadInfo.mWindow->GetPerformance()->GetDOMTiming()->
|
||||
GetNavigationStartHighRes();
|
||||
} else {
|
||||
mNowBaseTimeStamp = CreationTimeStamp();
|
||||
mNowBaseTimeHighRes = CreationTime();
|
||||
}
|
||||
|
||||
// Our parent can get suspended after it initiates the async creation
|
||||
// of a new worker thread. In this case suspend the new worker as well.
|
||||
if (mLoadInfo.mWindow && mLoadInfo.mWindow->IsSuspended()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue