Bug 1456630 - Stop checking for Vista or earlier in GMPUtils, since those verisons of Windows aren't supported anymore. r?cpearce draft
authorMike Conley <mconley@mozilla.com>
Tue, 24 Apr 2018 17:00:53 -0400
changeset 787460 0bac4cf7c64563e1ac1e5b743a0b977a16148b82
parent 786478 dfb15917c057f17e5143f7d7c6e1972ba53efc49
push id107735
push usermconley@mozilla.com
push dateTue, 24 Apr 2018 21:02:26 +0000
reviewerscpearce
bugs1456630
milestone61.0a1
Bug 1456630 - Stop checking for Vista or earlier in GMPUtils, since those verisons of Windows aren't supported anymore. r?cpearce This should help us avoid doing some main-thread IO during start-up, since we won't need to init an nsSystemInfo object (which touches disk). MozReview-Commit-ID: IvzHSdzRHGL
toolkit/modules/GMPUtils.jsm
--- a/toolkit/modules/GMPUtils.jsm
+++ b/toolkit/modules/GMPUtils.jsm
@@ -54,17 +54,17 @@ var GMPUtils = {
    */
   _isPluginSupported(aPlugin) {
     if (this._isPluginForceSupported(aPlugin)) {
       return true;
     }
     if (aPlugin.id == WIDEVINE_ID) {
       // The Widevine plugin is available for Windows versions Vista and later,
       // Mac OSX, and Linux.
-      return AppConstants.isPlatformAndVersionAtLeast("win", "6") ||
+      return AppConstants.platform == "win" ||
              AppConstants.platform == "macosx" ||
              AppConstants.platform == "linux";
     }
 
     return true;
   },
 
   _is32bitModeMacOS() {