Bug 1314213 - Pass dismiss from PermissionPromptPrototype to PopupNotifications; r?mconley
MozReview-Commit-ID: 8WxlgMSTn0q
--- 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);