forked from mirrors/gecko-dev
Bug 1797145: Disable Spectre Mitigations for the privileged Mozilla processesr r=nika
Also add in a Process Name conditional for them. Differential Revision: https://phabricator.services.mozilla.com/D160107
This commit is contained in:
parent
22851c56bc
commit
7e0e285f5f
1 changed files with 4 additions and 1 deletions
|
|
@ -2665,6 +2665,8 @@ mozilla::ipc::IPCResult ContentChild::RecvRemoteType(
|
||||||
SetProcessName("WebExtensions"_ns, nullptr, &aProfile);
|
SetProcessName("WebExtensions"_ns, nullptr, &aProfile);
|
||||||
} else if (aRemoteType == PRIVILEGEDABOUT_REMOTE_TYPE) {
|
} else if (aRemoteType == PRIVILEGEDABOUT_REMOTE_TYPE) {
|
||||||
SetProcessName("Privileged Content"_ns, nullptr, &aProfile);
|
SetProcessName("Privileged Content"_ns, nullptr, &aProfile);
|
||||||
|
} else if (aRemoteType == PRIVILEGEDMOZILLA_REMOTE_TYPE) {
|
||||||
|
SetProcessName("Privileged Mozilla"_ns, nullptr, &aProfile);
|
||||||
} else if (remoteTypePrefix == WITH_COOP_COEP_REMOTE_TYPE) {
|
} else if (remoteTypePrefix == WITH_COOP_COEP_REMOTE_TYPE) {
|
||||||
#ifdef NIGHTLY_BUILD
|
#ifdef NIGHTLY_BUILD
|
||||||
SetProcessName("WebCOOP+COEP Content"_ns, nullptr, &aProfile);
|
SetProcessName("WebCOOP+COEP Content"_ns, nullptr, &aProfile);
|
||||||
|
|
@ -2692,7 +2694,8 @@ mozilla::ipc::IPCResult ContentChild::RecvRemoteType(
|
||||||
(remoteTypePrefix == FISSION_WEB_REMOTE_TYPE ||
|
(remoteTypePrefix == FISSION_WEB_REMOTE_TYPE ||
|
||||||
remoteTypePrefix == SERVICEWORKER_REMOTE_TYPE ||
|
remoteTypePrefix == SERVICEWORKER_REMOTE_TYPE ||
|
||||||
remoteTypePrefix == WITH_COOP_COEP_REMOTE_TYPE ||
|
remoteTypePrefix == WITH_COOP_COEP_REMOTE_TYPE ||
|
||||||
aRemoteType == PRIVILEGEDABOUT_REMOTE_TYPE)) {
|
aRemoteType == PRIVILEGEDABOUT_REMOTE_TYPE ||
|
||||||
|
aRemoteType == PRIVILEGEDMOZILLA_REMOTE_TYPE)) {
|
||||||
JS::DisableSpectreMitigationsAfterInit();
|
JS::DisableSpectreMitigationsAfterInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue