Bug 1006461 - Fix handling of permission notifications in preference dialogs

This commit is contained in:
janekptacijarabaci 2018-04-26 06:33:40 +02:00 committed by Roy Tam
commit af4f1319d1

View file

@ -203,6 +203,11 @@ var gPermissionManager = {
{
if (aTopic == "perm-changed") {
var permission = aSubject.QueryInterface(Components.interfaces.nsIPermission);
// Ignore unrelated permission types.
if (permission.type != this._type)
return;
if (aData == "added") {
this._addPermissionToList(permission);
++this._view._rowCount;