[epiphany/pgriffis/web-extension-alarms: 2/4] WebExtensions: Fix type of background web view
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension-alarms: 2/4] WebExtensions: Fix type of background web view
- Date: Fri, 27 May 2022 18:19:39 +0000 (UTC)
commit 20a2c9295ac50b5548237e3d164631391455e50d
Author: Patrick Griffis <pgriffis igalia com>
Date: Fri May 27 12:07:06 2022 -0500
WebExtensions: Fix type of background web view
src/webextension/api/runtime.c | 2 +-
src/webextension/ephy-web-extension-manager.c | 6 +++---
src/webextension/ephy-web-extension-manager.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/webextension/api/runtime.c b/src/webextension/api/runtime.c
index 3f519afd0..9e49c68ee 100644
--- a/src/webextension/api/runtime.c
+++ b/src/webextension/api/runtime.c
@@ -54,7 +54,7 @@ runtime_handler_send_message (EphyWebExtension *self,
{
EphyShell *shell = ephy_shell_get_default ();
EphyWebExtensionManager *manager = ephy_shell_get_web_extension_manager (shell);
- WebKitWebView *view = WEBKIT_WEB_VIEW (ephy_web_extension_manager_get_background_web_view (manager, self));
+ WebKitWebView *view = ephy_web_extension_manager_get_background_web_view (manager, self);
g_autoptr (JSCValue) value = jsc_value_object_get_property_at_index (args, 0);
g_autofree char *script = NULL;
diff --git a/src/webextension/ephy-web-extension-manager.c b/src/webextension/ephy-web-extension-manager.c
index 6994a1435..1146bbca0 100644
--- a/src/webextension/ephy-web-extension-manager.c
+++ b/src/webextension/ephy-web-extension-manager.c
@@ -366,7 +366,7 @@ ephy_web_extension_manager_update_location_entry (EphyWebExtensionManager *self,
}
}
-EphyWebView *
+WebKitWebView *
ephy_web_extension_manager_get_background_web_view (EphyWebExtensionManager *self,
EphyWebExtension *web_extension)
{
@@ -394,7 +394,7 @@ page_action_clicked (GtkWidget *event_box,
g_autofree char *json = NULL;
g_autofree char *script = NULL;
EphyWebExtensionManager *self = ephy_shell_get_web_extension_manager (shell);
- WebKitWebView *web_view = WEBKIT_WEB_VIEW (ephy_web_extension_manager_get_background_web_view (self,
web_extension));
+ WebKitWebView *web_view = ephy_web_extension_manager_get_background_web_view (self, web_extension);
json_builder_begin_object (builder);
json_builder_set_member_name (builder, "url");
@@ -803,7 +803,7 @@ on_browser_action_clicked (GtkWidget *event_box,
EphyWebExtension *web_extension = EPHY_WEB_EXTENSION (user_data);
EphyWebExtensionManager *self = ephy_shell_get_web_extension_manager (ephy_shell_get_default ());
g_autofree char *script = NULL;
- WebKitWebView *web_view = WEBKIT_WEB_VIEW (ephy_web_extension_manager_get_background_web_view (self,
web_extension));
+ WebKitWebView *web_view = ephy_web_extension_manager_get_background_web_view (self, web_extension);
script = g_strdup_printf ("window.browser.browserAction.onClicked._emit();");
diff --git a/src/webextension/ephy-web-extension-manager.h b/src/webextension/ephy-web-extension-manager.h
index 963f3aaaf..c757e46bc 100644
--- a/src/webextension/ephy-web-extension-manager.h
+++ b/src/webextension/ephy-web-extension-manager.h
@@ -66,7 +66,7 @@ GtkWidget *ephy_web_extension_manager_get_page_action
EphyWebExtension
*web_extension,
EphyWebView
*web_view);
-EphyWebView *ephy_web_extension_manager_get_background_web_view (EphyWebExtensionManager
*self,
+WebKitWebView *ephy_web_extension_manager_get_background_web_view (EphyWebExtensionManager
*self,
EphyWebExtension
*web_extension);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]