rem:   if (!LoadSignons()) { return; /* user failed to unlock the database */ } LoadReject(); LoadNopreview(); LoadNocapture(); 
context: function Startup(){  signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance();  signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer);  doSetOKCancel(onOK, null);  // init ok event handler  // remove wallet functions (unless overruled by the "wallet.enabled" pref)  try {    pref = Components.classes['@mozilla.org/preferences;1'];    pref = pref.getService();    pref = pref.QueryInterface(Components.interfaces.nsIPref);    try {      if (!pref.GetBoolPref("wallet.enabled")) {        var element;        element = document.getElementById("nopreview");        element.setAttribute("hidden", "true");        element = document.getElementById("nocapture");        element.setAttribute("hidden", "true");      }    } catch(e) {      dump("wallet.enabled pref is missing from all.js");    }  } catch (ex) {    dump("failed to get prefs service!\n");    pref = null;  }  var tab = window.arguments[0];  if (tab == "S") {    element = document.getElementById("signonTab");    element.setAttribute("selected", "true");    element = document.getElementById("panel");    element.setAttribute("index","0" );    // hide non-used tabs    element = document.getElementById("nopreview");    element.setAttribute("hidden", "true");    element = document.getElementById("nocapture");    element.setAttribute("hidden", "true");  } else if (tab == "W") {    element = document.getElementById("signonviewer");    element.setAttribute("title", element.getAttribute("alttitle"));        // hide non-used tabs    element = document.getElementById("nopreview");    element.selected = true;    element = document.getElementById("signonTab");    element.setAttribute("hidden", "true");    element = document.getElementById("signonSitesTab");    element.setAttribute("hidden", "true");    element = document.getElementById("panel");    element.setAttribute("index","2" );  } else {    /* invalid value for argument */  }  if (!LoadSignons()) {    return; /* user failed to unlock the database */  }  LoadReject();  LoadNopreview();  LoadNocapture();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6d3aacc4ed875df0fe7a6132a93aa2c545281b48/SignonViewer.js/clean/extensions/wallet/signonviewer/SignonViewer.js