mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Bug 574460 - Fix handling of permission deletion notifications in preference dialogs
This commit is contained in:
parent
078801b39f
commit
61d9cbe246
1 changed files with 11 additions and 4 deletions
|
|
@ -238,10 +238,17 @@ var gPermissionManager = {
|
|||
}
|
||||
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.
|
||||
else if (aData == "deleted") {
|
||||
for (var i = 0; i < this._permissions.length; i++) {
|
||||
if (this._permissions[i].host == permission.host) {
|
||||
this._permissions.splice(i, 1);
|
||||
this._view._rowCount--;
|
||||
this._tree.treeBoxObject.rowCountChanged(this._view.rowCount - 1, -1);
|
||||
this._tree.treeBoxObject.invalidate();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue