зеркало из https://github.com/mozilla/pjs.git
avoid duplicate permissions from being added to the view
This commit is contained in:
Родитель
0c06867267
Коммит
7dc6adda02
|
@ -136,12 +136,6 @@ var gPermissionManager = {
|
|||
this._type,
|
||||
capabilityString,
|
||||
aCapability);
|
||||
this._permissions.push(p);
|
||||
|
||||
this._view._rowCount = this._permissions.length;
|
||||
this._tree.treeBoxObject.rowCountChanged(this._permissions.length-1, 1);
|
||||
this._tree.treeBoxObject.ensureRowIsVisible(this._permissions.length-1);
|
||||
|
||||
uri.spec = p.host;
|
||||
this._pm.add(uri, p.type, p.perm);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче