Bug 889433 - Blocklist h264 playback on Sony devices running Android 4.2 r=doublec a=lsblakk
authorEdwin Flores <eflores@mozilla.com>
Tue, 23 Jul 2013 06:45:41 +1200
changeset 148004 4e4af45e37cdda53b3fccc12cc3f30063678f5eb
parent 148003 655e78727928759b0912f1ff2be9b12af4e39a49
child 148005 3d08f108f78a66ed6dcd605e7863abf04e714dc1
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdoublec, lsblakk
bugs889433
milestone24.0a2
Bug 889433 - Blocklist h264 playback on Sony devices running Android 4.2 r=doublec a=lsblakk
widget/android/GfxInfo.cpp
--- a/widget/android/GfxInfo.cpp
+++ b/widget/android/GfxInfo.cpp
@@ -480,16 +480,24 @@ GfxInfo::GetFeatureStatusImpl(int32_t aF
           cModel.Find("GT-P5113", true) != -1 ||
           cManufacturer.Find("Sony", true) != -1;
 
         if (isBlocklisted) {
           *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
           return NS_OK;
         }
       }
+      else if (CompareVersions(mOSVersion.get(), "4.3.0") < 0)
+      {
+        // Blocklist all Sony devices
+        if (cManufacturer.Find("Sony", true) != -1) {
+          *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
+          return NS_OK;
+        }
+      }
     }
   }
 
   return GfxInfoBase::GetFeatureStatusImpl(aFeature, aStatus, aSuggestedDriverVersion, aDriverInfo, &os);
 }
 
 #ifdef DEBUG