diff options
author | Martin Stransky <stransky@redhat.com> | 2018-05-25 12:50:35 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2018-05-25 12:50:35 +0200 |
commit | dd0eb4d9d89c3b796044c7fac8397c8713c5cdeb (patch) | |
tree | a784b13aa5a0fb07ed8cc7c7f50ecdb3650c2e12 /mozilla-1460810.patch | |
parent | Update to 60.0.1 (diff) | |
download | librewolf-fedora-ff-dd0eb4d9d89c3b796044c7fac8397c8713c5cdeb.tar.gz librewolf-fedora-ff-dd0eb4d9d89c3b796044c7fac8397c8713c5cdeb.tar.bz2 librewolf-fedora-ff-dd0eb4d9d89c3b796044c7fac8397c8713c5cdeb.zip |
Enable Wayland backend
Diffstat (limited to 'mozilla-1460810.patch')
-rw-r--r-- | mozilla-1460810.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mozilla-1460810.patch b/mozilla-1460810.patch new file mode 100644 index 0000000..016f75f --- /dev/null +++ b/mozilla-1460810.patch @@ -0,0 +1,30 @@ +# HG changeset patch +# User Evan Klitzke <evan@eklitzke.org> +# Parent c5e0ee17388381f96d0acf4bdd9d163827719096 +Bug 1460810 - [Gtk/Wayland] Handle error value (-1) returned by gtk_section_data_get_length(), r=stransky + +diff --git a/widget/gtk/nsClipboardWayland.cpp b/widget/gtk/nsClipboardWayland.cpp +--- a/widget/gtk/nsClipboardWayland.cpp ++++ b/widget/gtk/nsClipboardWayland.cpp +@@ -662,18 +662,19 @@ wayland_clipboard_contents_received(GtkC + delete fastTrack; + } + + void + nsRetrievalContextWayland::TransferFastTrackClipboard( + int aClipboardRequestNumber, GtkSelectionData *aSelectionData) + { + if (mClipboardRequestNumber == aClipboardRequestNumber) { +- mClipboardDataLength = gtk_selection_data_get_length(aSelectionData); +- if (mClipboardDataLength > 0) { ++ int dataLength = gtk_selection_data_get_length(aSelectionData); ++ if (dataLength > 0) { ++ mClipboardDataLength = dataLength; + mClipboardData = reinterpret_cast<char*>( + g_malloc(sizeof(char)*mClipboardDataLength)); + memcpy(mClipboardData, gtk_selection_data_get_data(aSelectionData), + sizeof(char)*mClipboardDataLength); + } + } else { + NS_WARNING("Received obsoleted clipboard data!"); + } |