[epiphany/pgriffis/web-extension-fixes-2: 3/3] Document web extension initialization user data args
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension-fixes-2: 3/3] Document web extension initialization user data args
- Date: Wed, 18 May 2022 19:28:55 +0000 (UTC)
commit e770cf28c4402a886baef1c675527be269355b2b
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]