Bug 1894265 - Ensure spectre mitigation for fission content process can only be disabled when ORB is enabled r=nika,jandem

Differential Revision: https://phabricator.services.mozilla.com/D210727
This commit is contained in:
Sean Feng 2024-05-21 13:36:03 +00:00
parent 26be5d3a96
commit c9e4de7a6b

View file

@ -2663,6 +2663,7 @@ mozilla::ipc::IPCResult ContentChild::RecvRemoteType(
// Turn off Spectre mitigations in isolated web content processes.
if (StaticPrefs::javascript_options_spectre_disable_for_isolated_content() &&
StaticPrefs::browser_opaqueResponseBlocking() &&
(remoteTypePrefix == FISSION_WEB_REMOTE_TYPE ||
remoteTypePrefix == SERVICEWORKER_REMOTE_TYPE ||
remoteTypePrefix == WITH_COOP_COEP_REMOTE_TYPE ||