summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-06-06 19:29:03 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-06-06 19:29:03 -0400
commit5be321400303b625758febd62e60f289cb2e6c8a (patch)
treedb6b74ea9315161eaa342c8c60eee57b3547f3bb /widget
parentf8f6d0c4164af5c7ee8d37e39453efd46d1a5c49 (diff)
downloadaura-central-5be321400303b625758febd62e60f289cb2e6c8a.tar.gz
backport mozbug %546387: fix assert failure in gtk which prints to the console.
Diffstat (limited to 'widget')
-rw-r--r--widget/gtk/nsClipboard.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/widget/gtk/nsClipboard.cpp b/widget/gtk/nsClipboard.cpp
index 053ae970e..eecae3e88 100644
--- a/widget/gtk/nsClipboard.cpp
+++ b/widget/gtk/nsClipboard.cpp
@@ -214,7 +214,8 @@ nsClipboard::SetData(nsITransferable *aTransferable,
GtkTargetEntry *gtkTargets = gtk_target_table_new_from_list(list, &numTargets);
// Set getcallback and request to store data after an application exit
- if (gtk_clipboard_set_with_data(gtkClipboard, gtkTargets, numTargets,
+ if (gtkTargets &&
+ gtk_clipboard_set_with_data(gtkClipboard, gtkTargets, numTargets,
clipboard_get_cb, clipboard_clear_cb, this))
{
// We managed to set-up the clipboard so update internal state