mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #1977 - Bring back old behavior behind a pref.
I've thought about this before creating the issue, and Moonchild wanted this as well.
This commit is contained in:
parent
707d744219
commit
0c5c349ca6
2 changed files with 17 additions and 2 deletions
|
|
@ -278,9 +278,20 @@ DecoderTraits::CanHandleContentType(const MediaContentType& aContentType,
|
|||
bool DecoderTraits::ShouldHandleMediaType(const char* aMIMEType,
|
||||
DecoderDoctorDiagnostics* aDiagnostics)
|
||||
{
|
||||
// Prior to Issue #1977, we always pop-up the download prompt when
|
||||
// wave files are opened directly. This was considered inconsistent
|
||||
// since we play wave files when they're inside an HTML5 audio tag
|
||||
// anyway. However, there may be users who depended on this old
|
||||
// behavior, where they use their helper apps to open WAV audio
|
||||
// instead. We should allow this old behavior behind a pref for
|
||||
// those who want it.
|
||||
if (!Preferences::GetBool("media.wave.play-stand-alone", true)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If an external plugin which can handle quicktime video is available
|
||||
// (and not disabled), prefer it over native playback as there several
|
||||
// codecs found in the wild that we do not handle.
|
||||
// (and not disabled), prefer it over native playback as there are
|
||||
// several codecs found in the wild that we do not handle.
|
||||
if (nsDependentCString(aMIMEType).EqualsASCII("video/quicktime")) {
|
||||
RefPtr<nsPluginHost> pluginHost = nsPluginHost::GetInst();
|
||||
if (pluginHost &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue