add: if (this._type == "install") { var enumerator = this._pm.enumerator; if (!enumerator.hasMoreElements()) this._updatePermissions(); }  
context:   init: function (aParams)  {    this._type = aParams.permissionType;        var permissionsText = document.getElementById("permissionsText");    while (permissionsText.hasChildNodes())      permissionsText.removeChild(permissionsText.firstChild);    permissionsText.appendChild(document.createTextNode(aParams.introText));    document.title = aParams.windowTitle;        document.getElementById("btnBlock").hidden    = !aParams.blockVisible;    document.getElementById("btnSession").hidden  = !aParams.sessionVisible;    document.getElementById("btnAllow").hidden    = !aParams.allowVisible;        var urlField = document.getElementById("url");    urlField.value = aParams.prefilledHost;        this.onHostInput(urlField);        var os = Components.classes["@mozilla.org/observer-service;1"]                       .getService(Components.interfaces.nsIObserverService);    os.addObserver(this, "perm-changed", false);    this._loadPermissions();        urlField.focus();  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/861ccd9a914fd75c7cf6652858110900b375e794/permissions.js/clean/browser/components/preferences/permissions.js