Bug 1111663 - Remove calling of an obsolete onClicked method. r=margaret
authorPetr Marek <marekp11@fel.cvut.cz>
Fri, 18 Mar 2016 13:04:00 -0400
changeset 289592 93955ff309b7710a910003b067433eb4e67aa742
parent 289591 3dc5292ed66afbca801c33bff49c86154b3b3c24
child 289593 cd5db0d77f5354aa285484d844e5f216b5f9db52
push id30107
push usercbook@mozilla.com
push dateTue, 22 Mar 2016 10:00:23 +0000
treeherdermozilla-central@3587b25bae30 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1111663
milestone48.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 1111663 - Remove calling of an obsolete onClicked method. r=margaret
mobile/android/modules/Notifications.jsm
--- a/mobile/android/modules/Notifications.jsm
+++ b/mobile/android/modules/Notifications.jsm
@@ -226,24 +226,16 @@ var Notifications = {
         break;
       case "notification-button-clicked":
         if (handlerKey) {
           _handlersMap[handlerKey].forEach(function(handler) {
             handler.onButtonClick(data.buttonId, cookie);
           });
         }
 
-        if (notification && !notification._buttons) {
-          break;
-        }
-
-        let button = notification._buttons[data.buttonId];
-        if (button && button.onClicked) {
-          button.onClicked(id, notification._cookie);
-        }
         break;
       case "notification-cleared":
       case "notification-closed":
         if (handlerKey) {
           _handlersMap[handlerKey].forEach(function(handler) {
             handler.onCancel(cookie);
           });
         }