Bug 1513039 - part14 : add new error message for web audio. r=baku,flod

Differential Revision: https://phabricator.services.mozilla.com/D14637

--HG--
extra : moz-landing-system : lando
This commit is contained in:
alwu 2019-01-07 18:44:03 +00:00
Родитель a4a90d4976
Коммит 6b72f94b2f
2 изменённых файлов: 2 добавлений и 1 удалений

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

@ -150,6 +150,7 @@ MediaEMENoCodecsDeprecatedWarning=Calling navigator.requestMediaKeySystemAccess(
# LOCALIZATION NOTE: Do not translate "Mutation Event" and "MutationObserver"
MutationEventWarning=Use of Mutation Events is deprecated. Use MutationObserver instead.
BlockAutoplayError=Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted.
BlockAutoplayWebAudioError=Autoplay is only allowed after site is activated by the user gestures, or AudioContext is offline.
# LOCALIZATION NOTE: Do not translate "Components"
ComponentsWarning=The Components object is deprecated. It will soon be removed.
PluginHangUITitle=Warning: Unresponsive plugin

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

@ -967,7 +967,7 @@ void AudioContext::ResumeInternal() {
}
void AudioContext::ReportBlocked() {
ReportToConsole(nsIScriptError::warningFlag, "BlockAutoplayError");
ReportToConsole(nsIScriptError::warningFlag, "BlockAutoplayWebAudioError");
mWasAllowedToStart = false;
if (!StaticPrefs::MediaBlockEventEnabled()) {