LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File disable-signature-verification-for-system-extensions.patch of Package firefox-system-extensions (Project home:eli-schwartz)

--- firefox-55.0.orig/toolkit/mozapps/extensions/internal/XPIInstall.jsm	2017-07-31 12:20:52.000000000 -0400
+++ firefox-55.0/toolkit/mozapps/extensions/internal/XPIInstall.jsm	2017-08-08 23:25:46.710137868 -0400
@@ -77,6 +77,7 @@
   "BOOTSTRAP_REASONS",
   "KEY_APP_SYSTEM_ADDONS",
   "KEY_APP_SYSTEM_DEFAULTS",
+  "KEY_APP_GLOBAL",
   "KEY_APP_TEMPORARY",
   "TEMPORARY_ADDON_SUFFIX",
   "TOOLKIT_ID",
@@ -1132,6 +1133,10 @@
   if (aAddon._installLocation.name == KEY_APP_SYSTEM_DEFAULTS)
     return false;
 
+  // Disable verification for system extensions
+  if (aAddon._installLocation.name == KEY_APP_GLOBAL)
+    return false;
+
   // Hotfixes should always have their signature checked
   let hotfixID = Preferences.get(PREF_EM_HOTFIX_ID, undefined);
   if (hotfixID && aAddon.id == hotfixID)