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




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

    WebExtensions: Fix bad cast
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1117>

 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]