зеркало из https://github.com/mozilla/gecko-dev.git
avoid duplicate permissions from being added to the view
This commit is contained in:
Родитель
a1e3e85786
Коммит
7f6e581258
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче