rem: LoadSignons(); 
add: if (!LoadSignons()) { return; /* user failed to unlock the database */ } 
context: function Startup(){  signonviewer = Components.classes["component://netscape/signonviewer/signonviewer-world"].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['component://netscape/preferences'];    pref = pref.getService();    pref = pref.QueryInterface(Components.interfaces.nsIPref);    try {      if (!pref.GetBoolPref("wallet.enabled")) {        var element;        element = document.getElementById("nopreview");        element.setAttribute("style","display: none;" );        element = document.getElementById("nocapture");        element.setAttribute("style","display: none;" );      }    } catch(e) {      dump("wallet.enabled pref is missing from all.js");    }  } catch (ex) {    dump("failed to get prefs service!\n");    pref = null;  }  LoadSignons();  LoadReject();  LoadNopreview();  LoadNocapture();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f7ca805f9fb1745c0b1f3bf6822a6fd0370e6bad/SignonViewer.js/buggy/extensions/wallet/signonviewer/SignonViewer.js