Bug 1173523 - Part 9: Update pageinfo to use the new API for nsIPermission

This commit is contained in:
janekptacijarabaci 2018-04-26 12:30:42 +02:00 • committed by Roy Tam
commit d03744a3a1
2 changed files with 4 additions and 3 deletions

View file

@ -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);
}
}
}
}