зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4f3448549f
Коммит
5a800090cb
|
@ -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__);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче