rem:  var uri; var host; var i;    for (i in additions) { host = additions[i]; if (host != null) { host = "http: uri = ioService.newURI(host, null, null); permissionManager.add(uri, popupType, true); 
add: var i, p;  for (i in removals) { p = removals[i]; try { permissionManager.remove(p.host, p.type); } 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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/473865070c571ced9b0239faeaf8a27fd9d894a3/permissionsManager.js/clean/suite/common/permissions/permissionsManager.js