Bug 1692385 Remove repetition of IsWindowStillActive() test in same task r=pehrsons

The task is main-thread, so the second IsWindowStillActive() call always
returned true.

This became obsolete with
https://hg.mozilla.org/mozilla-central/rev/69b1d1c5e010097cfd7c10c9a373f72ea6873e2c#l1.587

Depends on D105250

Differential Revision: https://phabricator.services.mozilla.com/D105251
This commit is contained in:
Karl Tomlinson 2021-02-19 04:00:45 +00:00
Родитель 4f3448549f
Коммит 5a800090cb
1 изменённых файлов: 0 добавлений и 6 удалений

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

@ -2991,12 +2991,6 @@ RefPtr<MediaManager::MgrPromise> MediaManager::EnumerateDevicesImpl(
MOZ_ALWAYS_TRUE(mgr->mDeviceIDs.put(std::move(id)));
}
}
if (!mgr->IsWindowStillActive(aWindowId)) {
return MgrPromise::CreateAndReject(
MakeRefPtr<MediaMgrError>(MediaMgrError::Name::AbortError),
__func__);
}
MediaManager::AnonymizeDevices(*aOutDevices, *originKey, aWindowId);
return MgrPromise::CreateAndResolve(false, __func__);
},