diff options
author | Martin Stransky <stransky@anakreon.cz> | 2014-10-15 16:41:46 +0200 |
---|---|---|
committer | Martin Stransky <stransky@anakreon.cz> | 2014-10-15 16:41:46 +0200 |
commit | b024cf0ab0d2cbfeda58c53dc5cc423f0c1883c5 (patch) | |
tree | 6f8d7a882cbe5f22b0bb203e5fa6ee65895a336e /mozilla-858919-2.patch | |
parent | Disabled webrtc on ARM (diff) | |
download | librewolf-fedora-ff-b024cf0ab0d2cbfeda58c53dc5cc423f0c1883c5.tar.gz librewolf-fedora-ff-b024cf0ab0d2cbfeda58c53dc5cc423f0c1883c5.tar.bz2 librewolf-fedora-ff-b024cf0ab0d2cbfeda58c53dc5cc423f0c1883c5.zip |
Added patches from mozbz#858919
Diffstat (limited to 'mozilla-858919-2.patch')
-rw-r--r-- | mozilla-858919-2.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mozilla-858919-2.patch b/mozilla-858919-2.patch new file mode 100644 index 0000000..ece5906 --- /dev/null +++ b/mozilla-858919-2.patch @@ -0,0 +1,28 @@ +# HG changeset patch +# Parent 9d66436af432f057f65d16ab9f5871baca4ada78 +# User Martin Stransky <stransky@redhat.com> +Bug 858919 - Send "alertshow" event for Web Notifications by libnotify, r=?karlt + +diff --git a/toolkit/system/gnome/nsAlertsIconListener.cpp b/toolkit/system/gnome/nsAlertsIconListener.cpp +--- a/toolkit/system/gnome/nsAlertsIconListener.cpp ++++ b/toolkit/system/gnome/nsAlertsIconListener.cpp +@@ -175,16 +175,19 @@ nsAlertsIconListener::ShowAlert(GdkPixbu + // different signature, so a marshaller is used instead of a C callback to + // get the user_data (this) in a parseable format. |closure| is created + // with a floating reference, which gets sunk by g_signal_connect_closure(). + GClosure* closure = g_closure_new_simple(sizeof(GClosure), this); + g_closure_set_marshal(closure, notify_closed_marshal); + mClosureHandler = g_signal_connect_closure(mNotification, "closed", closure, FALSE); + gboolean result = notify_notification_show(mNotification, nullptr); + ++ if (result && mAlertListener) ++ mAlertListener->Observe(nullptr, "alertshow", mAlertCookie.get()); ++ + return result ? NS_OK : NS_ERROR_FAILURE; + } + + nsresult + nsAlertsIconListener::StartRequest(const nsAString & aImageUrl) + { + if (mIconRequest) { + // Another icon request is already in flight. Kill it. |