rem:  var nameToURI = name.value.replace(" ", ""); var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI); uri.spec = nameToURI; permissionmanager.add(uri, "popup", nsIPermissionManager.ALLOW_ACTION); loadPermissions(); 
add:  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) 
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 nameToURI = name.value.replace(" ", "");      var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI);  uri.spec = nameToURI;  permissionmanager.add(uri, "popup", nsIPermissionManager.ALLOW_ACTION);  loadPermissions();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5baebbbb4040b2abaa0eb284b8d96ebaa8da88b7/pref-features.js/clean/browser/components/prefwindow/content/pref-features.js