author | Perry Jiang <perry@mozilla.com> |
Thu, 14 Nov 2019 16:08:36 +0000 | |
changeset 501996 | e28e46ca4a17fc887d2f206b13bca33d205112d7 |
parent 501995 | 5ee8c7c51c04274fe88aa28cf7b3e3008d7a6da8 |
child 501997 | 8dc03b744500555e87b7506bd317a6c70438603c |
push id | 100543 |
push user | pjiang@mozilla.com |
push date | Thu, 14 Nov 2019 16:45:12 +0000 |
treeherder | autoland@8dc03b744500 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | asuth |
bugs | 1575092 |
milestone | 72.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
dom/ipc/ContentParent.cpp | file | annotate | diff | comparison | revisions | |
dom/ipc/ContentParent.h | file | annotate | diff | comparison | revisions |
--- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -722,16 +722,21 @@ const nsDependentSubstring RemoteTypePre return StringHead(aContentProcessType, equalIdx); } bool IsWebRemoteType(const nsAString& aContentProcessType) { return StringBeginsWith(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) { // Max process count is based only on the prefix. const nsDependentSubstring processTypePrefix = RemoteTypePrefix(aContentProcessType); // Check for the default remote type of "web", as it uses different prefs.
--- a/dom/ipc/ContentParent.h +++ b/dom/ipc/ContentParent.h @@ -1389,16 +1389,18 @@ NS_DEFINE_STATIC_IID_ACCESSOR(ContentPar // This is the C++ version of remoteTypePrefix in E10SUtils.jsm. const nsDependentSubstring RemoteTypePrefix( const nsAString& aContentProcessType); // This is based on isWebRemoteType in E10SUtils.jsm. bool IsWebRemoteType(const nsAString& aContentProcessType); +bool IsWebCoopCoepRemoteType(const nsAString& aContentProcessType); + } // namespace dom } // namespace mozilla class ParentIdleListener : public nsIObserver { friend class mozilla::dom::ContentParent; public: NS_DECL_ISUPPORTS