зеркало из https://github.com/mozilla/gecko-dev.git
Bug 410691 - When blocking images from the context menu and undoing, an 'allow' exception is added. r=Mano, a1.9=beltzner
This commit is contained in:
Родитель
ac0291122d
Коммит
4bfbae65a6
|
@ -844,9 +844,10 @@ nsContextMenu.prototype = {
|
|||
|
||||
var uri = this.target.QueryInterface(Ci.nsIImageLoadingContent).currentURI;
|
||||
|
||||
permissionmanager.add(uri, "image",
|
||||
aBlock ? Ci.nsIPermissionManager.DENY_ACTION :
|
||||
Ci.nsIPermissionManager.ALLOW_ACTION);
|
||||
if (aBlock)
|
||||
permissionmanager.add(uri, "image", Ci.nsIPermissionManager.DENY_ACTION);
|
||||
else
|
||||
permissionmanager.remove(uri.host, "image");
|
||||
|
||||
var brandBundle = document.getElementById("bundle_brand");
|
||||
var app = brandBundle.getString("brandShortName");
|
||||
|
|
Загрузка…
Ссылка в новой задаче