[epiphany/pgriffis/web-extension-beastify] WebExtensions: Don't add NULL to permissions array



commit 8f25005e1b6fffd37fb09bf45aed646fbf5fa83a
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun May 22 21:11:40 2022 -0500

    WebExtensions: Don't add NULL to permissions array

 src/webextension/ephy-web-extension.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/webextension/ephy-web-extension.c b/src/webextension/ephy-web-extension.c
index 4bf75086e..e4861ca0a 100644
--- a/src/webextension/ephy-web-extension.c
+++ b/src/webextension/ephy-web-extension.c
@@ -970,8 +970,6 @@ ephy_web_extension_load (GFile *target)
 
     json_array_foreach_element (array, web_extension_add_permission, self);
   }
-  if (self->permissions)
-    g_ptr_array_add (self->permissions, NULL);
 
   return self;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]