summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-10 20:26:59 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-10 20:26:59 +0200
commitf858398f2f1387f95b718309c46d3a9eed30d9ae (patch)
tree2e5836c4c8d37d29b1c13d00505b9eb0c84edc7e /application
parentdf185f9fbe2a2a1f8d3bbf713b5ce04c504d8bf7 (diff)
downloadUXP-f858398f2f1387f95b718309c46d3a9eed30d9ae.tar
UXP-f858398f2f1387f95b718309c46d3a9eed30d9ae.tar.gz
UXP-f858398f2f1387f95b718309c46d3a9eed30d9ae.tar.lz
UXP-f858398f2f1387f95b718309c46d3a9eed30d9ae.tar.xz
UXP-f858398f2f1387f95b718309c46d3a9eed30d9ae.zip
[PALEMOON] "Page Info" - "Permissions": Permission Manager - use URI instead of URI.host
Issue #112
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/base/content/pageinfo/pageInfo.js2
-rw-r--r--application/palemoon/base/content/pageinfo/permissions.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/application/palemoon/base/content/pageinfo/pageInfo.js b/application/palemoon/base/content/pageinfo/pageInfo.js
index ba93ee817..f91a607af 100644
--- a/application/palemoon/base/content/pageinfo/pageInfo.js
+++ b/application/palemoon/base/content/pageinfo/pageInfo.js
@@ -857,7 +857,7 @@ function onBlockImage()
if (checkbox.checked)
permissionManager.add(uri, "image", nsIPermissionManager.DENY_ACTION);
else
- permissionManager.remove(uri.host, "image");
+ permissionManager.remove(uri, "image");
}
function onImageSelect()
diff --git a/application/palemoon/base/content/pageinfo/permissions.js b/application/palemoon/base/content/pageinfo/permissions.js
index 7a0006b61..81ff63f34 100644
--- a/application/palemoon/base/content/pageinfo/permissions.js
+++ b/application/palemoon/base/content/pageinfo/permissions.js
@@ -187,7 +187,7 @@ function onCheckboxClick(aPartId)
var command = document.getElementById("cmd_" + aPartId + "Toggle");
var checkbox = document.getElementById(aPartId + "Def");
if (checkbox.checked) {
- permissionManager.remove(gPermURI.host, aPartId);
+ permissionManager.remove(gPermURI, aPartId);
command.setAttribute("disabled", "true");
var perm = gPermObj[aPartId]();
setRadioState(aPartId, perm);
@@ -211,7 +211,7 @@ function onRadioClick(aPartId)
var id = radioGroup.selectedItem.id;
var permission = id.split('#')[1];
if (permission == UNKNOWN) {
- permissionManager.remove(gPermURI.host, aPartId);
+ permissionManager.remove(gPermURI, aPartId);
} else {
permissionManager.add(gPermURI, aPartId, permission);
}
@@ -251,7 +251,7 @@ function onIndexedDBClear()
var permissionManager = Components.classes[PERMISSION_CONTRACTID]
.getService(nsIPermissionManager);
- permissionManager.remove(gPermURI.host, "indexedDB");
+ permissionManager.remove(gPermURI, "indexedDB");
initIndexedDBRow();
}