[epiphany/pgriffis/web-extension-fixes-2: 12/16] Document web extension initialization user data args




commit 43ee4cfd4acb8d9c202ca76a596f6f4b6a14094d
Author: Patrick Griffis <pgriffis igalia com>
Date:   Wed May 18 13:38:20 2022 -0500

    Document web extension initialization user data args

 embed/ephy-embed-shell.c                      | 4 ++--
 src/webextension/ephy-web-extension-manager.c | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index b4a904bff..4582dc18e 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -788,8 +788,8 @@ initialize_web_process_extensions (WebKitWebContext *web_context,
                              ephy_profile_dir_is_default () ? NULL : ephy_profile_dir (),
                              g_settings_get_boolean (EPHY_SETTINGS_WEB, EPHY_PREFS_WEB_REMEMBER_PASSWORDS),
                              private_profile,
-                             FALSE,
-                             "");
+                             FALSE /* is_webextension */,
+                             "" /* webextension_translations */);
   webkit_web_context_set_web_extensions_initialization_user_data (web_context, g_steal_pointer (&user_data));
 }
 
diff --git a/src/webextension/ephy-web-extension-manager.c b/src/webextension/ephy-web-extension-manager.c
index 9c0442425..87a02d50b 100644
--- a/src/webextension/ephy-web-extension-manager.c
+++ b/src/webextension/ephy-web-extension-manager.c
@@ -623,9 +623,9 @@ init_web_extension_api (WebKitWebContext *web_context,
   user_data = g_variant_new ("(smsbbbs)",
                              ephy_web_extension_get_guid (web_extension),
                              ephy_profile_dir_is_default () ? NULL : ephy_profile_dir (),
-                             FALSE,
-                             FALSE,
-                             TRUE,
+                             FALSE /* should_remember_passwords */,
+                             FALSE /* private_profile */,
+                             TRUE /* is_webextension */,
                              translations);
   webkit_web_context_set_web_extensions_initialization_user_data (web_context, g_steal_pointer (&user_data));
 }


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