зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1575092 - add "web COOP+COEP" process type helpers r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D50814 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
603b880e70
Коммит
e0adb2d2a9
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче