diff options
author | Martin Stransky <stransky@redhat.com> | 2018-10-08 14:09:44 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2018-10-08 14:09:44 +0200 |
commit | d37312c85acfb1a4754989329dfe326b15e88f02 (patch) | |
tree | 6251d7c1d3e78108035ee19d3f9051270ce370d0 /mozilla-1491824.patch | |
parent | Updated to latest upstream (62.0.3) (diff) | |
download | librewolf-fedora-ff-d37312c85acfb1a4754989329dfe326b15e88f02.tar.gz librewolf-fedora-ff-d37312c85acfb1a4754989329dfe326b15e88f02.tar.bz2 librewolf-fedora-ff-d37312c85acfb1a4754989329dfe326b15e88f02.zip |
Added new Wayland patches from Firefox 63, Added pipewire patch, Enabled Wayland by default for Fedora 30
Diffstat (limited to 'mozilla-1491824.patch')
-rw-r--r-- | mozilla-1491824.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mozilla-1491824.patch b/mozilla-1491824.patch new file mode 100644 index 0000000..4bdca59 --- /dev/null +++ b/mozilla-1491824.patch @@ -0,0 +1,40 @@ +diff -up firefox-62.0.3/media/libyuv/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.old firefox-62.0.3/media/libyuv/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium +diff -up firefox-62.0.3/media/webrtc/trunk/Makefile.old firefox-62.0.3/media/webrtc/trunk/Makefile +diff -up firefox-62.0.3/widget/gtk/nsClipboardWayland.cpp.old firefox-62.0.3/widget/gtk/nsClipboardWayland.cpp +--- firefox-62.0.3/widget/gtk/nsClipboardWayland.cpp.old 2018-10-05 12:52:40.067567770 +0200 ++++ firefox-62.0.3/widget/gtk/nsClipboardWayland.cpp 2018-09-21 12:39:40.477095989 +0200 +@@ -153,7 +153,7 @@ DataOffer::GetData(wl_display* aDisplay, + + GIOChannel *channel = g_io_channel_unix_new(pipe_fd[0]); + GError* error = nullptr; +- char* clipboardData; ++ char* clipboardData = nullptr; + + g_io_channel_set_encoding(channel, nullptr, &error); + if (!error) { +@@ -470,13 +470,17 @@ nsRetrievalContextWayland::SetClipboardD + // Delete existing clipboard data offer + mClipboardOffer = nullptr; + +- DataOffer* dataOffer = +- static_cast<DataOffer*>(g_hash_table_lookup(mActiveOffers, +- aWaylandDataOffer)); +- NS_ASSERTION(dataOffer, "We're missing clipboard data offer!"); +- if (dataOffer) { +- g_hash_table_remove(mActiveOffers, aWaylandDataOffer); +- mClipboardOffer = dataOffer; ++ // null aWaylandDataOffer indicates that our clipboard content ++ // is no longer valid and should be release. ++ if (aWaylandDataOffer != nullptr) { ++ DataOffer* dataOffer = ++ static_cast<DataOffer*>(g_hash_table_lookup(mActiveOffers, ++ aWaylandDataOffer)); ++ NS_ASSERTION(dataOffer, "We're missing stored clipboard data offer!"); ++ if (dataOffer) { ++ g_hash_table_remove(mActiveOffers, aWaylandDataOffer); ++ mClipboardOffer = dataOffer; ++ } + } + } + +diff -up firefox-62.0.3/widget/gtk/nsClipboardWayland.h.old firefox-62.0.3/widget/gtk/nsClipboardWayland.h |