Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1513039 - part14 : add new error message for web audio. r=baku,flod
Browse files Browse the repository at this point in the history
  • Loading branch information
alastor0325 committed Jan 7, 2019
1 parent 9956739 commit 0c838fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dom/locales/en-US/chrome/dom/dom.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dom/media/webaudio/AudioContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ void AudioContext::ResumeInternal() {
}

void AudioContext::ReportBlocked() {
ReportToConsole(nsIScriptError::warningFlag, "BlockAutoplayError");
ReportToConsole(nsIScriptError::warningFlag, "BlockAutoplayWebAudioError");
mWasAllowedToStart = false;

if (!StaticPrefs::MediaBlockEventEnabled()) {
Expand Down

0 comments on commit 0c838fd

Please sign in to comment.