Bug 1964033 - Update the ServiceWorkerShutdown progress setup assertion. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D247580
This commit is contained in:
committed by
echuang@mozilla.com
parent
12436bf2c2
commit
c587dc023d
@@ -62,8 +62,12 @@ const char* ServiceWorkerShutdownState::GetProgressString() const {
|
||||
|
||||
void ServiceWorkerShutdownState::SetProgress(Progress aProgress) {
|
||||
MOZ_ASSERT(aProgress != Progress::EndGuard_);
|
||||
// The Shutdown progress should be increased step by step. However, it could
|
||||
// directly get into ShutdownCompleted state when shutting down starts during
|
||||
// ServiceWorker spawning.
|
||||
MOZ_RELEASE_ASSERT(UnderlyingProgressValue(mProgress) + 1 ==
|
||||
UnderlyingProgressValue(aProgress));
|
||||
UnderlyingProgressValue(aProgress) ||
|
||||
aProgress == Progress::ShutdownCompleted);
|
||||
|
||||
mProgress = aProgress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user