[evolution/gnome-3-24] Crash under e_dom_resize_document_content_to_preview_width()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-24] Crash under e_dom_resize_document_content_to_preview_width()
- Date: Thu, 8 Jun 2017 17:19:01 +0000 (UTC)
commit cf80358c5002babaa142f8c6fe433189addfa91e
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 8 19:15:45 2017 +0200
Crash under e_dom_resize_document_content_to_preview_width()
Related to bug #739955, where is also a little explanation [1] what led
to this change.
[1] https://bugzilla.gnome.org/show_bug.cgi?id=739955#c22
src/web-extensions/e-dom-utils.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/web-extensions/e-dom-utils.c b/src/web-extensions/e-dom-utils.c
index 386fdcf..14d03ed 100644
--- a/src/web-extensions/e-dom-utils.c
+++ b/src/web-extensions/e-dom-utils.c
@@ -798,6 +798,10 @@ e_dom_utils_bind_dom (WebKitDOMDocument *document,
WebKitDOMNode *node;
node = webkit_dom_node_list_item (nodes, ii);
+ webkit_dom_event_target_remove_event_listener (
+ WEBKIT_DOM_EVENT_TARGET (node), event,
+ G_CALLBACK (callback), FALSE);
+
webkit_dom_event_target_add_event_listener (
WEBKIT_DOM_EVENT_TARGET (node), event,
G_CALLBACK (callback), FALSE, user_data);
@@ -1027,6 +1031,10 @@ e_dom_utils_e_mail_display_bind_dom (WebKitDOMDocument *document,
dom_window = webkit_dom_document_get_default_view (document);
+ webkit_dom_event_target_remove_event_listener (
+ WEBKIT_DOM_EVENT_TARGET (dom_window), "resize",
+ G_CALLBACK (dom_window_resize_cb), FALSE);
+
webkit_dom_event_target_add_event_listener (
WEBKIT_DOM_EVENT_TARGET (dom_window),
"resize",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]