mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
Backed out changeset decc061fbd43 (bug 896555) for possible causing robocop-2 failures in testDoorHanger.
CLOSED TREE
This commit is contained in:
parent
16cf0b2dc3
commit
afbb972b95
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user