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:
Andrew McCreight 2019-09-25 22:40:49 +00:00
Родитель f4726058d8
Коммит dca80bb570
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -226,7 +226,7 @@ RemoteWorkerManager::SelectTargetActorForServiceWorker() const {
auto scopeExit = MakeScopeExit(
[&] { contentParents.AppendElement(std::move(contentParent)); });
if (contentParent->GetRemoteType().EqualsLiteral(DEFAULT_REMOTE_TYPE)) {
if (IsWebRemoteType(contentParent->GetRemoteType())) {
auto lock = contentParent->mRemoteWorkerActorData.Lock();
if (lock->mCount || !lock->mShutdownStarted) {