[epiphany/gnome-3-38] web-view: avoid crash destroying ITP permission request info bar



commit c5c200dc1900b9c0d6ed07493f072e9a854f2531
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Oct 10 23:19:46 2020 +0000

    web-view: avoid crash destroying ITP permission request info bar
    
    We need to own the WebKitPolicyDecision.
    
    Probably fixes #1357
    
    
    (cherry picked from commit 6016b542945ab5c615fecb240653cf9ab48512b5)

 embed/ephy-web-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 13119f2df..59b5819a5 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1177,7 +1177,7 @@ ephy_web_view_show_itp_permission_info_bar (EphyWebView
   g_signal_connect (info_bar, "response",
                     G_CALLBACK (decide_on_itp_permission_request),
                     decision);
-  g_object_set_data_full (G_OBJECT (info_bar), "ephy-itp-decision", decision, g_object_unref);
+  g_object_set_data_full (G_OBJECT (info_bar), "ephy-itp-decision", g_object_ref (decision), g_object_unref);
 
   ephy_embed_add_top_widget (EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (web_view),
                              info_bar,


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