diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index fc073c8d1433..4124b0fddcfd 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -727,6 +727,11 @@ bool IsWebRemoteType(const nsAString& aContentProcessType) { NS_LITERAL_STRING(DEFAULT_REMOTE_TYPE)); } +bool IsWebCoopCoepRemoteType(const nsAString& aContentProcessType) { + return StringBeginsWith(aContentProcessType, + NS_LITERAL_STRING(WITH_COOP_COEP_REMOTE_TYPE_PREFIX)); +} + /*static*/ uint32_t ContentParent::GetMaxProcessCount( const nsAString& aContentProcessType) { diff --git a/dom/ipc/ContentParent.h b/dom/ipc/ContentParent.h index 1a698c9d229b..96948bee1ccf 100644 --- a/dom/ipc/ContentParent.h +++ b/dom/ipc/ContentParent.h @@ -1394,6 +1394,8 @@ const nsDependentSubstring RemoteTypePrefix( // This is based on isWebRemoteType in E10SUtils.jsm. bool IsWebRemoteType(const nsAString& aContentProcessType); +bool IsWebCoopCoepRemoteType(const nsAString& aContentProcessType); + } // namespace dom } // namespace mozilla