summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/pageinfo
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-27 13:03:12 +0200
committerGitHub <noreply@github.com>2018-04-27 13:03:12 +0200
commitc82c6d960a7f19d6595171f9705c43514f20c1ec (patch)
treea6b92a1da483b654e3ac498fe1197dcad9c65866 /application/palemoon/base/content/pageinfo
parent8acbae697958b7abfbb9ea5806646ebb2cea5f87 (diff)
parente66060388f0f8402bed402cb28edbe43fcc31ad5 (diff)
downloadUXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar.gz
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar.lz
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar.xz
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.zip
Merge pull request #273 from janekptacijarabaci/pm_permissions_1
[PALEMOON] [frontend vs backend] Fix "Permissions Manager" and permissions
Diffstat (limited to 'application/palemoon/base/content/pageinfo')
-rw-r--r--application/palemoon/base/content/pageinfo/pageInfo.js3
-rw-r--r--application/palemoon/base/content/pageinfo/permissions.js4
2 files changed, 4 insertions, 3 deletions
diff --git a/application/palemoon/base/content/pageinfo/pageInfo.js b/application/palemoon/base/content/pageinfo/pageInfo.js
index 83f0ddb91..6b02bc370 100644
--- a/application/palemoon/base/content/pageinfo/pageInfo.js
+++ b/application/palemoon/base/content/pageinfo/pageInfo.js
@@ -1112,8 +1112,9 @@ var imagePermissionObserver = {
var row = getSelectedRow(imageTree);
var item = gImageView.data[row][COL_IMAGE_NODE];
var url = gImageView.data[row][COL_IMAGE_ADDRESS];
- if (makeURI(url).host == permission.host)
+ if (permission.matchesURI(makeURI(url), true)) {
makeBlockImage(url);
+ }
}
}
}
diff --git a/application/palemoon/base/content/pageinfo/permissions.js b/application/palemoon/base/content/pageinfo/permissions.js
index 2fa0cc303..68261ce6e 100644
--- a/application/palemoon/base/content/pageinfo/permissions.js
+++ b/application/palemoon/base/content/pageinfo/permissions.js
@@ -98,7 +98,7 @@ var permissionObserver = {
if (aTopic == "perm-changed") {
var permission = aSubject.QueryInterface(
Components.interfaces.nsIPermission);
- if (permission.host == gPermURI.host) {
+ if (permission.matchesURI(gPermURI, true)) {
if (permission.type in gPermObj)
initRow(permission.type);
else if (permission.type.startsWith("plugin"))
@@ -119,7 +119,7 @@ function onLoadPermission(principal)
gPermURI = uri;
gPermPrincipal = principal;
var hostText = document.getElementById("hostText");
- hostText.value = gPermURI.host;
+ hostText.value = gPermURI.prePath;
for (var i in gPermObj)
initRow(i);