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
parent f4726058d8
commit dca80bb570

View File

@ -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) {