Commit feed8650 authored by Milan Crha's avatar Milan Crha
Browse files

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
parent 13ebd784
......@@ -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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment