[epiphany/pgriffis/web-extension-storage] WebExtensions: Fix bad cast



commit 6a5dd6b6079134fea519b476502226cea183f31c
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue May 24 11:41:24 2022 -0500

    WebExtensions: Fix bad cast

 src/webextension/ephy-web-extension-manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/webextension/ephy-web-extension-manager.c b/src/webextension/ephy-web-extension-manager.c
index 71d6def44..a00d66faf 100644
--- a/src/webextension/ephy-web-extension-manager.c
+++ b/src/webextension/ephy-web-extension-manager.c
@@ -376,7 +376,7 @@ ephy_web_extension_manager_get_background_web_view (EphyWebExtensionManager *sel
 static void
 ephy_web_extension_manager_set_background_web_view (EphyWebExtensionManager *self,
                                                     EphyWebExtension        *web_extension,
-                                                    EphyWebView             *web_view)
+                                                    WebKitWebView           *web_view)
 {
   g_hash_table_insert (self->background_web_views, web_extension, web_view);
 }
@@ -970,7 +970,7 @@ run_background_script (EphyWebExtensionManager *self,
 
   /* Create new background web_view */
   background = create_web_extensions_webview (web_extension);
-  ephy_web_extension_manager_set_background_web_view (self, web_extension, EPHY_WEB_VIEW (background));
+  ephy_web_extension_manager_set_background_web_view (self, web_extension, WEBKIT_WEB_VIEW (background));
 
   base_uri = create_base_uri_for_resource_path (web_extension, page);
 


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