Skip to content

Commit

Permalink
Bug 1303255 - Use correct dec-doc messages on Vista - r=Gijs
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: FeaFlvaL8t4
  • Loading branch information
squelart committed Sep 15, 2016
1 parent 1a6889d commit b5429e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion browser/base/content/browser-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,18 @@ let gDecoderDoctorHandler = {
if (AppConstants.isPlatformAndVersionAtMost("win", "5.9")) {
return gNavigatorBundle.getString("decoder.noCodecsXP.message");
}
if (!AppConstants.isPlatformAndVersionAtLeast("win", "6.1")) {
return gNavigatorBundle.getString("decoder.noCodecsVista.message");
}
return gNavigatorBundle.getString("decoder.noCodecs.message");
}
if (type == "platform-decoder-not-found") {
if (AppConstants.isPlatformAndVersionAtLeast("win", "6")) {
if (AppConstants.isPlatformAndVersionAtLeast("win", "6.1")) {
return gNavigatorBundle.getString("decoder.noHWAcceleration.message");
}
if (AppConstants.isPlatformAndVersionAtLeast("win", "6")) {
return gNavigatorBundle.getString("decoder.noHWAccelerationVista.message");
}
if (AppConstants.platform == "linux") {
return gNavigatorBundle.getString("decoder.noCodecsLinux.message");
}
Expand Down

0 comments on commit b5429e4

Please sign in to comment.