Bug 1006461 - Fix handling of permission notifications in preference dialogs. r=florian

This commit is contained in:
Michael Pruett 2014-05-30 19:24:29 -05:00
parent 702caf8060
commit c15b473706

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;