[epiphany/pgriffis/web-extension-beastify: 2/5] WebExtensions: Grant permissions to extension's own host by default




commit e7025a1b60e0a9e6dec6b6bfbe9edb4f136095da
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun May 22 20:49:05 2022 -0500

    WebExtensions: Grant permissions to extension's own host by default

 src/webextension/ephy-web-extension.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/webextension/ephy-web-extension.c b/src/webextension/ephy-web-extension.c
index 884fb96ff..d872381ab 100644
--- a/src/webextension/ephy-web-extension.c
+++ b/src/webextension/ephy-web-extension.c
@@ -760,6 +760,8 @@ ephy_web_extension_init (EphyWebExtension *self)
   self->permissions = g_ptr_array_new_full (1, g_free);
 
   self->guid = g_uuid_string_random ();
+
+  g_ptr_array_add (self->permissions, g_strdup_printf ("ephy-webextension://%s/*", self->guid));
 }
 
 static EphyWebExtension *


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