rem: var webNav = aDocShell.QueryInterface(Components.interfaces.nsIWebNavigation); 
context: function xpinstallEditPermissions(aDocShell){  var browser = gXPInstallObserver._getBrowser(aDocShell);  if (browser) {    var bundlePreferences = document.getElementById("bundle_preferences");    var webNav = aDocShell.QueryInterface(Components.interfaces.nsIWebNavigation);    var params = { blockVisible   : false,                   sessionVisible : false,                   allowVisible   : true,                   prefilledHost  : webNav.currentURI.host,                   permissionType : "install",                   windowTitle    : bundlePreferences.getString("addons_permissions_title"),                   introText      : bundlePreferences.getString("addonspermissionstext") };    var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]                   .getService(Components.interfaces.nsIWindowMediator);    var existingWindow = wm.getMostRecentWindow("Browser:Permissions");    if (existingWindow) {      existingWindow.initWithParams(params);      existingWindow.focus();    }    else      window.openDialog("chrome://browser/content/preferences/permissions.xul",                        "_blank", "resizable,dialog=no,centerscreen", params);    return false;  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/0995a3d991344541d9dda3f96987a691298e10c4/browser.js/buggy/browser/base/content/browser.js