rem: this._permissions[i].capability = this._getCapabilityString(permission); 
add: this._permissions[i].capability = this._getCapabilityString(permission.capability); 
context:   observe: function (aSubject, aTopic, aData)  {    if (aTopic == "perm-changed") {      var permission = aSubject.QueryInterface(Components.interfaces.nsIPermission);      if (aData == "added") {        this._addPermissionToList(permission);        ++this._view._rowCount;        this._tree.treeBoxObject.rowCountChanged(this._view.rowCount - 1, 1);                // Re-do the sort, since we inserted this new item at the end.         gTreeUtils.sort(this._tree, this._view, this._permissions,                         this._lastPermissionSortColumn,                         this._lastPermissionSortAscending);              }      else if (aData == "changed") {        for (var i = 0; i < this._permissions.length; ++i) {          if (this._permissions[i].host == permission.host) {            this._permissions[i].capability = this._getCapabilityString(permission);            break;          }        }        // Re-do the sort, if the status changed from Block to Allow        // or vice versa, since if we're sorted on status, we may no        // longer be in order.         if (this._lastPermissionSortColumn.id == "statusCol") {          gTreeUtils.sort(this._tree, this._view, this._permissions,                           this._lastPermissionSortColumn,                           this._lastPermissionSortAscending);        }        this._tree.treeBoxObject.invalidate();      }      // No UI other than this window causes this method to be sent a "deleted"      // notification, so we don't need to implement it since Delete is handled      // directly by the Permission Removal handlers. If that ever changes, those      // implementations will have to move into here.     }  },
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/a7066b5e56b6b91626e74c12b107d8f783fc2a61/permissions.js/buggy/browser/components/preferences/permissions.js