From c9e4de7a6b787488868e115de19889a3db80d413 Mon Sep 17 00:00:00 2001 From: Sean Feng Date: Tue, 21 May 2024 13:36:03 +0000 Subject: [PATCH] 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 --- dom/ipc/ContentChild.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index 403cb3c9b865..c5c576517996 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -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 ||