зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1579835, part 5 - Fix remote type matching in SelectTargetActorForServiceWorker. r=asuth
With Fission, the remote type can have the form webIsolated= in addition to web. IsWebRemoteType() handles both of these cases. Differential Revision: https://phabricator.services.mozilla.com/D45378 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f4726058d8
Коммит
dca80bb570
|
@ -226,7 +226,7 @@ RemoteWorkerManager::SelectTargetActorForServiceWorker() const {
|
||||||
auto scopeExit = MakeScopeExit(
|
auto scopeExit = MakeScopeExit(
|
||||||
[&] { contentParents.AppendElement(std::move(contentParent)); });
|
[&] { contentParents.AppendElement(std::move(contentParent)); });
|
||||||
|
|
||||||
if (contentParent->GetRemoteType().EqualsLiteral(DEFAULT_REMOTE_TYPE)) {
|
if (IsWebRemoteType(contentParent->GetRemoteType())) {
|
||||||
auto lock = contentParent->mRemoteWorkerActorData.Lock();
|
auto lock = contentParent->mRemoteWorkerActorData.Lock();
|
||||||
|
|
||||||
if (lock->mCount || !lock->mShutdownStarted) {
|
if (lock->mCount || !lock->mShutdownStarted) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче