Bug 1847772 - aec logging button in about:webrtc is more helpful when sandboxed;r=mjf,fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D185684
This commit is contained in:
Nico Grunbaum 2023-08-10 16:05:51 +00:00
Родитель bc01c276c6
Коммит aa8eccb5a8
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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();
}
}

Просмотреть файл

@ -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 }