Bug 1314213 - Pass dismiss from PermissionPromptPrototype to PopupNotifications; r?mconley draft
authorChun-Min Chang <chun.m.chang@gmail.com>
Tue, 01 Nov 2016 13:56:32 +0800
changeset 432067 9d3662aee3da1acfa7f1dd4deff04039d3213222
parent 431996 2c773b97167252cedcba0be0c7af9d4cab192ef5
child 535534 2e72cec66daf0de385cc2a1215f16c0e623ff4b3
push id34185
push userbmo:cchang@mozilla.com
push dateTue, 01 Nov 2016 06:22:08 +0000
reviewersmconley
bugs1314213
milestone52.0a1
Bug 1314213 - Pass dismiss from PermissionPromptPrototype to PopupNotifications; r?mconley MozReview-Commit-ID: 8WxlgMSTn0q
browser/modules/PermissionUI.jsm
--- a/browser/modules/PermissionUI.jsm
+++ b/browser/modules/PermissionUI.jsm
@@ -316,16 +316,19 @@ this.PermissionPromptPrototype = {
                 promptAction.action == Ci.nsIPermissionManager.ALLOW_ACTION) {
               this.allow();
             } else {
               this.cancel();
             }
           }
         },
       };
+      if (promptAction.dismiss) {
+        action.dismiss = promptAction.dismiss
+      }
 
       popupNotificationActions.push(action);
     }
 
     let mainAction = popupNotificationActions.length ?
                      popupNotificationActions[0] : null;
     let secondaryActions = popupNotificationActions.splice(1);