rem: permissionsTree.treeBoxObject.ensureRowIsVisible(permissions.length-1) 
add: permissionsTree.treeBoxObject.ensureRowIsVisible(permissions.length-1); 
context: function AddPermission() {  var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                              .getService(Components.interfaces.nsIPromptService);  var stringBundle = document.getElementById("stringBundle");  var message = stringBundle.getString("enterSiteName");  var title = stringBundle.getString("enterSiteTitle");  var name = {};  if (!promptService.prompt(window, title, message, name, null, {}))      return;    var host = name.value.replace(/ /g, "");  permissions[permissions.length] = new Permission(permissions.length, host,                                                   (host.charAt(0)==".") ? host.substring(1,host.length) : host,                                                   "popup",                                                   "");  permissionsTreeView.rowCount = permissions.length;  permissionsTree.treeBoxObject.rowCountChanged(permissions.length-1, 1);  permissionsTree.treeBoxObject.ensureRowIsVisible(permissions.length-1)}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9ec77ce5d7d2e88adaeb4d2bc66b8e28994085fe/pref-features.js/buggy/browser/components/prefwindow/content/pref-features.js