rem: for (i in removals) { host = removals[i]; if (host != null) { permissionManager.remove(host, popupType); 
add: for (i in additions) { p = additions[i]; try { var uri = ioService.newURI("http: permissionManager.add(uri, p.type, p.perm); } catch(ex) { 
context: function finalizeChanges() {  var ioService = Components.classes["@mozilla.org/network/io-service;1"]                            .getService(Components.interfaces.nsIIOService);    var uri;  var host;  var i;    //note: the scheme will be taken off later, it is being added now only to  //create the uri for add/remove  for (i in additions) {    host = additions[i];    if (host != null) {      host = "http://" + host;      uri = ioService.newURI(host, null, null);      permissionManager.add(uri, popupType, true);    }  }  for (i in removals) {    host = removals[i];    if (host != null) {      permissionManager.remove(host, popupType);    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d31df1a4c164f0d9b15383a3387cc1edfb20650b/permissionsManager.js/buggy/xpfe/components/permissions/content/permissionsManager.js