Bug 902899 - Fix ContentPermission Prompt. r=etienne

This commit is contained in:
Gregor Wagner 2013-08-09 19:02:33 +02:00
Родитель 30970c47d5
Коммит 9d59e26bc9
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -791,6 +791,7 @@ var AlertsHelper = {
if (!manifestUrl || !manifestUrl.length) {
send(null, null);
return;
}
// If we have a manifest URL, get the icon and title from the manifest

Просмотреть файл

@ -188,7 +188,9 @@ ContentPermissionPrompt.prototype = {
this.sendToBrowserWindow("permission-prompt", request, requestId, function(type, remember) {
if (type == "permission-allow") {
rememberPermission(request.type, principal, !remember);
if (callback) {
callback();
}
request.allow();
return;
}
@ -202,7 +204,9 @@ ContentPermissionPrompt.prototype = {
Ci.nsIPermissionManager.EXPIRE_SESSION, 0);
}
if (callback) {
callback();
}
request.cancel();
});
},