add:  try { pref = Components.classes['component: 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; }  
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  LoadSignons();  LoadReject();  LoadNopreview();  LoadNocapture();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d8010647552229eab82ebfb7b26ef47582aa43df/SignonViewer.js/clean/extensions/wallet/signonviewer/SignonViewer.js