Bug 1740551 - Do not perform navigation fault mitigation when the ServiceWorkerRegistrationInfo::mUnregistered is true. r=dom-worker-reviewers,jstutte

Differential Revision: https://phabricator.services.mozilla.com/D134384
This commit is contained in:
Eden Chuang 2021-12-21 12:29:37 +00:00
Родитель 03a4d7f62c
Коммит e733f56e1d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -509,7 +509,7 @@ void ServiceWorkerRegistrationInfo::MaybeScheduleUpdate() {
// When reach the navigation fault threshold, calling unregister instead of
// scheduling update.
if (mActiveWorker) {
if (mActiveWorker && !mUnregistered) {
uint32_t navigationFaultCount;
mActiveWorker->GetNavigationFaultCount(&navigationFaultCount);
const auto navigationFaultThreshold = StaticPrefs::