[epiphany/mcatanzaro/#1357] web-view: avoid crash destroying ITP permission request info bar
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/#1357] web-view: avoid crash destroying ITP permission request info bar
- Date: Sat, 10 Oct 2020 23:29:27 +0000 (UTC)
commit 6016b542945ab5c615fecb240653cf9ab48512b5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Oct 10 18:19:46 2020 -0500
web-view: avoid crash destroying ITP permission request info bar
We need to own the WebKitPolicyDecision.
Probably fixes #1357
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]