From ed4e67920f81c1578a875925efb20188a2281a33 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Wed, 18 May 2022 22:45:20 +0800 Subject: [PATCH] GMP: revert GMPUtils.jsm back to state of rev 4a010b94951a46c3f85da43b1fd712fb1a8f8bc5 This should fix GMP DLLs loading. --- toolkit/mozapps/extensions/GMPUtils.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/mozapps/extensions/GMPUtils.jsm b/toolkit/mozapps/extensions/GMPUtils.jsm index 8bae09ee0..a2be27feb 100644 --- a/toolkit/mozapps/extensions/GMPUtils.jsm +++ b/toolkit/mozapps/extensions/GMPUtils.jsm @@ -79,6 +79,7 @@ this.GMPUtils = { // The Widevine plugin is available for Windows versions Vista and later, // Mac OSX, and Linux. return AppConstants.isPlatformAndVersionAtLeast("win", "6") || + AppConstants.platform == "macosx" || AppConstants.platform == "linux"; } @@ -87,10 +88,9 @@ this.GMPUtils = { _is32bitModeMacOS: function() { if (AppConstants.platform != "macosx") { - return Services.appinfo.XPCOMABI.split("-")[0] == "x86"; - } else { return false; } + return Services.appinfo.XPCOMABI.split("-")[0] == "x86"; }, /**