Backed out changeset decc061fbd43 (bug 896555) for possible causing robocop-2 failures in testDoorHanger.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2013-07-24 14:30:57 -04:00
parent 16cf0b2dc3
commit afbb972b95

View File

@ -72,8 +72,9 @@ ContentPermissionPrompt.prototype = {
// If the user checked "Don't ask again", make a permanent exception
if (aChecked) {
Services.perms.addFromPrincipal(request.principal, request.type, Ci.nsIPermissionManager.ALLOW_ACTION);
} else {
// Otherwise allow the permission for the current session
} else if (entityName == "desktopNotification") {
// For notifications, it doesn't make sense to grant permission once. So when the user clicks allow,
// we let the requestor create notifications for the session.
Services.perms.addFromPrincipal(request.principal, request.type, Ci.nsIPermissionManager.ALLOW_ACTION, Ci.nsIPermissionManager.EXPIRE_SESSION);
}