Bug 1392055 - Pass the full event to the callback in notification.xml. r=jhofmann
authorThomas Duellmann <bugzilla2007@duellmann24.net>
Mon, 18 Dec 2017 07:29:00 -0500
changeset 396957 91cf499eff0e
parent 396956 39f70372b66c
child 396958 de3a554033e6
push id33117
push userebalazs@mozilla.com
push dateWed, 20 Dec 2017 09:47:43 +0000
treeherdermozilla-central@a235bf4868ab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhofmann
bugs1392055
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1392055 - Pass the full event to the callback in notification.xml. r=jhofmann
toolkit/content/widgets/notification.xml
--- a/toolkit/content/widgets/notification.xml
+++ b/toolkit/content/widgets/notification.xml
@@ -482,17 +482,17 @@
             var button = aEvent.target.buttonInfo;
             if (button.popup) {
               document.getElementById(button.popup).
                 openPopup(aEvent.originalTarget, "after_start", 0, 0, false, false, aEvent);
               aEvent.stopPropagation();
             } else {
               var callback = button.callback;
               if (callback) {
-                var result = callback(this, button, aEvent.target);
+                var result = callback(this, button, aEvent.target, aEvent);
                 if (!result)
                   this.close();
                 aEvent.stopPropagation();
               }
             }
           ]]>
         </body>
       </method>