mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Bug 1173523 - Part 9: Update pageinfo to use the new API for nsIPermission
This commit is contained in:
parent
6ed79ae702
commit
d03744a3a1
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue