зеркало из https://github.com/mozilla/gecko-dev.git
Bug 902899 - Fix ContentPermission Prompt. r=etienne
This commit is contained in:
Родитель
30970c47d5
Коммит
9d59e26bc9
|
@ -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();
|
||||
});
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче