diff --git a/toolkit/content/aboutwebrtc/aboutWebrtc.mjs b/toolkit/content/aboutwebrtc/aboutWebrtc.mjs index 5e332b6d9e72..69f96d74545e 100644 --- a/toolkit/content/aboutwebrtc/aboutWebrtc.mjs +++ b/toolkit/content/aboutwebrtc/aboutWebrtc.mjs @@ -302,7 +302,11 @@ class AecLogging extends Control { } onClick() { - this.setState((WGI.aecDebug = !WGI.aecDebug)); + if (Services.env.get("MOZ_DISABLE_CONTENT_SANDBOX") != "1") { + this.message = "about-webrtc-aec-logging-unavailable-sandbox"; + } else { + this.setState((WGI.aecDebug = !WGI.aecDebug)); + } this.update(); } } diff --git a/toolkit/locales/en-US/toolkit/about/aboutWebrtc.ftl b/toolkit/locales/en-US/toolkit/about/aboutWebrtc.ftl index 4b8a2a008425..4f04e69dec98 100644 --- a/toolkit/locales/en-US/toolkit/about/aboutWebrtc.ftl +++ b/toolkit/locales/en-US/toolkit/about/aboutWebrtc.ftl @@ -23,6 +23,7 @@ about-webrtc-aec-logging-msg-label = AEC Logging about-webrtc-aec-logging-off-state-label = Start AEC Logging about-webrtc-aec-logging-on-state-label = Stop AEC Logging about-webrtc-aec-logging-toggled-on-state-msg = AEC logging active (speak with the caller for a few minutes and then stop the capture) +about-webrtc-aec-logging-unavailable-sandbox = The environment variable MOZ_DISABLE_CONTENT_SANDBOX=1 is required to export AEC logs. Only set this variable if you understand the possible risks. # Variables: # $path (String) - The path to which the aec log file is saved. about-webrtc-aec-logging-toggled-off-state-msg = Captured log files can be found in: { $path }